-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
49 lines (41 loc) · 1.2 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
all :
make -C forwardmodel/dggev
make -C forwardmodel/spec1d
make -C Reference
make -C InitialPhase/optimizer
make -C Phase/optimizer
cd tutorial && pdflatex tutorial.tex
tutorial/tutorial.pdf : tutorial/tutorial.tex
cd tutorial && pdflatex tutorial
DISTFILES = \
$(wildcard example_data/LoveResponse/*.txt) \
$(wildcard example_data/RayleighResponse/*.txt) \
$(wildcard forwardmodel/dggev/*.f) \
forwardmodel/dggev/Makefile \
$(wildcard forwardmodel/spec1d/*.?pp) \
forwardmodel/spec1d/Makefile \
$(wildcard InitialPhase/scripts/*.py) \
$(wildcard InitialPhase/optimizer/*.?pp) \
InitialPhase/optimizer/Makefile \
$(wildcard Phase/optimizer/*.?pp) \
Phase/optimizer/Makefile \
$(wildcard Reference/*.?pp) \
$(wildcard Reference/models/*.txt) \
Reference/Makefile \
$(wildcard tutorial/*.sh) \
$(wildcard tutorial/scripts/*.py) \
tutorial/tutorial.tex \
tutorial/tutorial.pdf
DATE = $(shell date + "%Y%m%d%H%M")
DIR = AkiEstimate
TGZ = $(DIR).tar.gz
INSTALL = install
INSTALLFLAGS = -D
dist : tutorial/tutorial.pdf
mkdir -p $(DIR)
echo $(DATE) > $(DIR)/Version
for f in Makefile $(DISTFILES); do \
$(INSTALL) $(INSTALLFLAGS) $$f $(DIR)/$$f ; \
done
tar -czf $(TGZ) $(DIR)/*
rm -rf $(DIR)