-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 1.16 KB
/
Makefile
File metadata and controls
51 lines (34 loc) · 1.16 KB
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
# This work is dedicated to the public domain.
# Basic settings
toolsdir = ..
# `make` targets are:
#
# all - the default; create {cv,pubs}.{pdf,html}
# summary - summarize entries
# update-ads - update ADS citation counts
# clean - delete generated files
# Settings that probably won't need to be changed:
driver = $(toolsdir)/wltool
infos = $(wildcard *.txt)
# Rules:
all: cv.pdf pubs.pdf cv.html pubs.html
cv.tex: $(driver) cv.tmpl.tex $(infos)
python $< latex cv.tmpl.tex >$@.new && mv -f $@.new $@
pubs.tex: $(driver) pubs.tmpl.tex $(infos)
python $< latex pubs.tmpl.tex >$@.new && mv -f $@.new $@
cv.html: $(driver) cv.tmpl.html $(infos)
python $< html cv.tmpl.html >$@.new && mv -f $@.new $@
pubs.html: $(driver) pubs.tmpl.html $(infos)
python $< html pubs.tmpl.html >$@.new && mv -f $@.new $@
summary: $(infos)
python $(driver) summarize
update-ads:
python $(driver) update-cites
clean:
-rm -f *.aux *.log *.log2 *.out cv.html cv.pdf cv.tex pubs.html pubs.pdf pubs.tex
%.pdf: %.tex
@echo + making $@ -- error messages are in $*.log2 if anything goes wrong
pdflatex $< >$*.log2
pdflatex $< >$*.log2
# clear default make rules:
.SUFFIXES: