-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
90 lines (90 loc) · 3.15 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
SHELL = /bin/bash
#-------------------------------------------------------------------------------
.PHONY: adm bssn utilities
#-------------------------------------------------------------------------------
TARGETS = adm-bssn-eqtns adm-bssn-plots
#-------------------------------------------------------------------------------
all:
@ echo "> make install adm bssn ..."
@ make install
@ make adm
@ make bssn
@ cdblatex.sh -s -i adm-bssn-eqtns &> adm-bssn-eqtns.cdblog
@ pdflatex -halt-on-error -interaction=batchmode adm-bssn-plots &> adm-bssn-plots.texlog
@ make veryclean
#-------------------------------------------------------------------------------
adm:
@ echo "> make adm ..."
@ (cd adm/cadabra; make)
@ (cd adm/code; make; make data; make results)
#-------------------------------------------------------------------------------
bssn:
@ echo "> make bssn ..."
@ (cd bssn/cadabra; make)
@ (cd bssn/code; make; make data; make results)
#-------------------------------------------------------------------------------
cadabra:
@ echo "> make adm/cadabra ..."
@ (cd adm/cadabra; make)
@ echo "> make bssn/cadabra ..."
@ (cd bssn/cadabra; make)
#-------------------------------------------------------------------------------
code:
@ echo "> make adm/code ..."
@ (cd adm/code; make)
@ echo "> make bssn/code ..."
@ (cd bssn/code; make)
#-------------------------------------------------------------------------------
install:
@ echo "> make intsall ..."
@ INSTALL.sh
#-------------------------------------------------------------------------------
rm-dot:
@ (cd bssn/code/template; make rm-dot)
@ (cd bssn/cadabra; make rm-dot)
@ (cd adm/code/template; make rm-dot)
@ (cd adm/cadabra; make rm-dot)
@ rm -rf .[a-z]*.lb
#-------------------------------------------------------------------------------
clean:
@ for file in $(TARGETS); \
do \
rm -rf $${file}.aux $${file}.log $${file}.out $${file}.texlog $${file}.synctex.gz; \
done
#-------------------------------------------------------------------------------
veryclean:
@ make clean
@ for file in $(TARGETS); \
do \
rm -rf $${file}.cdb $${file}_.cdb; \
rm -rf $${file}.cdbidx $${file}.cdbtxt $${file}.cdblog; \
rm -rf $${file}.py; \
done
#-------------------------------------------------------------------------------
pristine:
@ make rm-dot
@ make veryclean
@ rm -rf adm-bssn-*.pdf adm-bssn-*.cdbtex
@ (cd support; make pristine)
@ (cd utilities; make pristine)
@ (cd adm/cadabra; make pristine)
@ (cd adm/code; make pristine)
@ (cd bssn/cadabra; make pristine)
@ (cd bssn/code; make pristine)
#-------------------------------------------------------------------------------
github-clean:
@ # same as "pristine" but keep the final pdf's
@ make rm-dot
@ make veryclean
@ rm -rf adm-bssn-*.cdbtex
@ (cd support; make pristine)
@ (cd utilities; make pristine)
@ (cd adm/cadabra; make pristine)
@ (cd adm/code; make pristine)
@ (cd bssn/cadabra; make pristine)
@ (cd bssn/code; make pristine)
#-------------------------------------------------------------------------------
github:
@ make pristine
@ make all
@ make github-clean