-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmakefile
47 lines (35 loc) · 1.22 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
REPOS := $(subst /.git,,$(shell find . -name .git | sed 's/^..//'))
FIGURES := $(subst /.git,,$(shell find ./figures -name .git | sed 's/^..//'))
# busted:
DONT_MAKE += gabookI
DONT_MAKE += stokesTheorem
DONT_MAKE += potentialMethods
DONT_MAKE += curvilinear
DONT_MAKE += frequencydomain
DONT_MAKE += phy450-relativisticEandM/mmacells
DONT_MAKE += GAelectrodynamics/mmacells
DONT_MAKE += phy2403-quantum-field-theory-redacted/mmacells
DONT_MAKE += phy2403-quantum-field-theory/mmacells
DONT_MAKE += julia
DONT_MAKE += latex
DONT_MAKE += mathematica
DONT_MAKE += matlab
SUBDIRS := $(filter-out $(FIGURES) .git $(DONT_MAKE),$(REPOS))
SUBDIRS += $(wildcard *-redacted)
all: subdirs
show:
@echo $(SUBDIRS) | tr ' ' '\n'
commit:
-$(foreach dir,$(REPOS),echo $(dir) ; (cd $(dir) && git commit -a);)
pull:
-$(foreach dir,$(REPOS),echo $(dir) ; (cd $(dir) && git pull);)
push:
-$(foreach dir,$(REPOS),echo $(dir) ; (cd $(dir) && git push);)
subdirs:
$(foreach dir,$(SUBDIRS),echo $(dir) ; make -C $(dir);)
diff:
$(foreach dir,$(REPOS),echo $(dir) ; (cd $(dir) && echo $(dir) && git diff -a);)
subclean:
$(foreach dir,$(SUBDIRS),echo $(dir) ; make -C $(dir) clean;)
l:
find . -name "*.tex" | grep -vF .revinfo | sed 's/^..//' > $@