forked from Open-Astrophysics-Bookshelf/numerical_exercises
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNUmakefile
executable file
·44 lines (33 loc) · 915 Bytes
/
GNUmakefile
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
EPStoPDF = epstopdf
ALL: CompHydroTutorial.pdf
DIRS := preface \
intro \
finite-volume \
advection \
burgers \
Euler \
multigrid \
diffusion \
multiphysics \
incompressible \
low_mach \
pyro \
hydro_examples \
software-engineering
TEXS := $(foreach dir, $(DIRS), $(wildcard $(dir)/*.tex))
EPSS := $(foreach dir, $(DIRS), $(wildcard $(dir)/*.eps))
#TEXS += git_info.tex
#git_info.tex:
CompHydroTutorial.pdf: CompHydroTutorial.tex $(TEXS) $(EPSS) refs.bib
git rev-parse HEAD > git_info.tex
pdflatex CompHydroTutorial < /dev/null
bibtex CompHydroTutorial.aux
pdflatex CompHydroTutorial < /dev/null
pdflatex CompHydroTutorial < /dev/null
$(RM) git_info.tex
clean:
$(RM) *.aux *.log *.dvi *.bbl *.blg *.lof *.toc *.exc *.out
$(RM) *~
realclean: clean
$(RM) CompHydroTutorial.pdf
.PHONY: clean