-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
58 lines (50 loc) · 1.4 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
BASE = stellar-notes
COMPILE = pdflatex
OPS = --file-line-error --synctex=1
RM = rm -f
CHAPTERS = frontmatter \
introduction \
equations \
convection \
Lane-Emden \
eos \
radiation \
plasma \
atmosphere \
PMScontraction \
nuclear \
main-sequence \
post-main-sequence \
perturbations \
initial-mass-function \
binaries \
technical-notes
TEX_SRC = $(foreach chap, $(CHAPTERS), $(wildcard $(chap)/*.tex))
FIGURES = convection/figs/convection-1.jpg \
convection/figs/convection-2.jpg \
convection/figs/convective.pdf \
convection/figs/turbulence-maker.pdf \
Lane-Emden/figs/LE_all.pdf \
radiation/figs/intensity-schematic.pdf \
plasma/figs/scattering.pdf \
plasma/figs/mean-free-path.pdf \
plasma/figs/shear-diagram.pdf \
atmosphere/figs/spectral_distribution.pdf \
nuclear/figs/coulomb_integrand.pdf \
binaries/figs/Roche.pdf \
perturbations/figs/eulerian.pdf \
perturbations/figs/lagrangian.pdf \
technical-notes/figs/steepening.pdf \
technical-notes/figs/piston.pdf
BIBS = bibs/stellar.bib
default: $(BASE).pdf
$(BASE).pdf: $(BASE).tex $(TEX_SRC) $(FIGURES) $(BIBS)
git rev-parse --short=8 HEAD > git-info.tex
$(COMPILE) $(OPS) $(BASE).tex
bibtex $(BASE).aux
$(COMPILE) $(OPS) $(BASE).tex
$(COMPILE) $(OPS) $(BASE).tex
clean:
$(RM) *.aux *.log *.dvi *.bbl *.blg *.toc *.log *.synctex* *.out
realclean: clean
$(RM) $(BASE).pdf