-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
75 lines (55 loc) · 1.72 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
##########################################################################
# Makefile for CV by Christoph Kirsch
#
# Do not remove any tab characters.
# Tab characters distinguish dependencies from commands.
##########################################################################
# Define the pattern rules
#
# Example:
# The first rule tells 'make' how to generate .dvi files from .tex files.
# The generation depends on the .tex file.
# % matches any non-empty substring, e.g., 'foo'.
# Then $< is 'foo.tex', $@ is 'foo.dvi', and $* is 'foo'.
%.dvi %.aux : %.tex ck.bib
latex $<
%.bbl %.blg : ck.bib
biber $*
%.pdf %.aux : %.tex ck.bib
pdflatex $<
%.html : %.tex ck.bib
htlatex $<
%.ps : %.dvi
dvips -P cmz -t letter -o $@ $<
%.ps.gz : %.ps
gzip -c $< > $@
##########################################################################
# Define the rules
#
# Example:
# The first rule is the default rule and will be invoked by 'gmake'.
.PHONY : ck again andagain pdf bib html all gzip ps clean htmlclean realclean
ck: pdf
again:
pdflatex ck
pdflatex publications
pdflatex talks
andagain:
pdflatex ck
pdflatex publications
pdflatex talks
pdf: ck.pdf publications.pdf talks.pdf
bib: pdf ck.bbl publications.bbl talks.bbl
html: publications.html talks.html
all: pdf bib again andagain html
gzip: pdf ck.pdf.gz
ps: bib ck.ps
clean:
/bin/rm -f *~ *.aux *.bbl *.blg *.dvi *.idx *.ilg *.ind *.lof *.bcf \
*.log *.lot *.ps *.ps.gz *.toc *.pstex *.pstex_t \
*.eepic *.fig.bak *.pdfsync *.out *-blx.bib *.4ct \
*.4tc *.idv *.xdv *.xref *.tmp *.run.xml *.lg *.fdb_latexmk
htmlclean:
/bin/rm -f publications.html talks.html
realclean: clean htmlclean
/bin/rm -f *.pdf