-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
77 lines (53 loc) · 2.85 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
ROOTINTRO=allintro
ROOTPGT=pgt-intro
ROOTPGTLARGE=pgt-intro-large
ROOTINTROSTAFF=${ROOTINTRO}-staff-version
ROOTINTROLARGE=${ROOTINTRO}-large
TEXINTRO=intro0.tex intro1.tex intro2.tex intro3.tex intro4.tex introappendix.tex
TEX=${TEXINTRO}
TEXINTRONOSUFF=${basename ${TEXINTRO}}
PDFINTRO=${addsuffix .pdf,${TEXINTRONOSUFF}}
PDFINTROLARGE=${addsuffix -large.pdf,${TEXINTRONOSUFF}}
PDFINTROSTAFF=${addsuffix -staff.pdf,${TEXINTRONOSUFF}}
PDF=${PDFINTRO} ${PDFINTROSTAFF} all-introlabs.pdf all-introlabs-staff.pdf
STY=${wildcard *.sty}
stu: stuintro
stuintro: all-introlabs.pdf ${PDFINTRO}
pgt: pgt-intro.pdf
all: staff stu large
staff: staffintro
staffintro: all-introlabs-staff.pdf ${PDFINTROSTAFF}
large: stuintrolarge pgtlarge
stuintrolarge: all-introlabs-large.pdf ${PDFINTROLARGE}
pgtlarge: pgt-intro-large.pdf
all-introlabs.pdf: ${ROOTINTRO}.tex intro-body.tex ${TEXINTRO} ${STY}
echo > includes.tex
pdflatex ${ROOTINTRO}; biber ${ROOTINTRO}; pdflatex ${ROOTINTRO}; pdflatex ${ROOTINTRO}; mv ${ROOTINTRO}.pdf $@
all-introlabs-large.pdf: ${ROOTINTROLARGE}.tex intro-body.tex ${TEXINTRO} ${STY}
echo > includes.tex
pdflatex ${ROOTINTROLARGE}; biber ${ROOTINTROLARGE}; pdflatex ${ROOTINTROLARGE}; pdflatex ${ROOTINTROLARGE}; mv ${ROOTINTROLARGE}.pdf $@
all-introlabs-staff.pdf: ${ROOTINTRO}.tex intro-body.tex ${TEXINTRO} ${STY}
echo > includes.tex
pdflatex ${ROOTINTROSTAFF}; biber ${ROOTINTROSTAFF}; pdflatex ${ROOTINTROSTAFF}; pdflatex ${ROOTINTROSTAFF}; mv ${ROOTINTROSTAFF}.pdf $@
pgt-intro.pdf: ${ROOTPGT}.tex intro-body-pgt.tex ${TEXINTRO} ${STY}
echo > includes.tex
pdflatex ${ROOTPGT}; biber ${ROOTPGT}; pdflatex ${ROOTPGT}; pdflatex ${ROOTPGT}
pgt-intro-large.pdf: ${ROOTPGTLARGE}.tex intro-body-pgt.tex ${TEXINTRO} ${STY}
echo > includes.tex
pdflatex ${ROOTPGTLARGE}; biber ${ROOTPGTLARGE}; pdflatex ${ROOTPGTLARGE}; pdflatex ${ROOTPGTLARGE}
intro%-staff.pdf: intro%.tex ${ROOTINTROSTAFF}.tex ${STY}
echo '\includeonly{'intro$*'}' > includes.tex
pdflatex ${ROOTINTROSTAFF} ; biber ${ROOTINTROSTAFF}; pdflatex ${ROOTINTROSTAFF} ; pdflatex ${ROOTINTROSTAFF} ; mv ${ROOTINTROSTAFF}.pdf $@
intro%-large.pdf: intro%.tex ${ROOTINTROLARGE}.tex ${STY}
echo '\includeonly{'intro$*'}' > includes.tex
pdflatex ${ROOTINTROLARGE} ; biber ${ROOTINTROLARGE}; pdflatex ${ROOTINTROLARGE} ; pdflatex ${ROOTINTROLARGE} ; mv ${ROOTINTROLARGE}.pdf $@
intro%.pdf: intro%.tex ${ROOTINTRO}.tex ${STY}
echo '\includeonly{'intro$*'}' > includes.tex
pdflatex ${ROOTINTRO} ; biber ${ROOTINTRO}; pdflatex ${ROOTINTRO} ; pdflatex ${ROOTINTRO} ; mv ${ROOTINTRO}.pdf $@
allintro: all-introlabs-staff.pdf all-introlabs.pdf ${PDFINTRO} ${PDFINTROSTAFF}
clean:
rm -f ${ROOT}.pdf ${ROOTINTRO}.pdf ${ROOTINTROSTAFF}.pdf ${PDF} ${PDFSTAFF} *.aux *.log *.mtc* *.maf *.rel *.bbl *.toc *.out *.run.xml *.out *.blg *.bcf comment.cut
minitoc:
./remake ${PDF}
minitocsv:
./remake ${PDFSTAFF}