-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·46 lines (35 loc) · 1.28 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
# rubber command and options
RUBBER=rubber
OPTS=--pdf
# choose heading or heading_proposal
HEADING=heading_proposal
main:
$(RUBBER) $(OPTS) dissertation.tex
heading:
$(RUBBER) $(OPTS) --jobname tmp_$(HEADING) --only $(HEADING) dissertation.tex
mv tmp_$(HEADING).pdf $(HEADING).pdf
introduction:
$(RUBBER) $(OPTS) --jobname tmp_introduction --only introduction dissertation.tex
mv tmp_introduction.pdf introduction.pdf
one:
$(RUBBER) $(OPTS) --jobname tmp_one --only one dissertation.tex
mv tmp_one.pdf one.pdf
two:
$(RUBBER) $(OPTS) --jobname tmp_two --only two dissertation.tex
mv tmp_two.pdf two.pdf
conclusion:
$(RUBBER) $(OPTS) --jobname tmp_conclusion --only conclusion dissertation.tex
mv tmp_conclusion.pdf conclusion.pdf
appendix:
$(RUBBER) $(OPTS) --jobname tmp_appendix --only alpha,beta dissertation.tex
mv tmp_appendix.pdf appendix.pdf
# make all targets into separate pdfs
all: main heading introduction one two conclusion appendix
# remove temporary files, keeping final output pdf
tidy:
$(RUBBER) --clean dissertation.tex
rm -f *.dvi *.aux *.log *.blg *.lot *.lof *.bbl *.toc *.out *~
# removal all generated files, including the final output pdf
clean:
$(RUBBER) $(OPTS) --clean dissertation.tex
rm -f *.dvi *.aux *.log *.blg *.lot *.lof *.bbl *.toc *.out *~ *.pdf