]> projects.mako.cc - latex_mako/blob - paper_template/Makefile
e78e0f4c877c6419d17f2e34672088f85c80a23b
[latex_mako] / paper_template / Makefile
1 #!/usr/bin/make
2
3 #all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
4 all: project_description.pdf references.pdf
5 pdf: all
6
7 refs-processed.bib: 
8         perl -p -e 's/©//' refs.bib > refs-processed.bib
9         perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-processed.bib |sponge refs-processed.bib
10         recode -d u8..ltex < refs-processed.bib | sponge refs-processed.bib
11
12 %.pdf: %.tex refs-processed.bib
13         rubber -fd $<
14
15 clean: 
16         rubber -d --clean *.tex
17         rm -f *.tmp
18         rm -f vc
19         rm -f refs-processed.bib
20
21 viewpdf: all
22         evince *.pdf
23
24 spell:
25         aspell -c -t --tex-check-comments -b text.tex
26
27 vc:
28         vc-git
29
30 .PHONY: clean all

Benjamin Mako Hill || Want to submit a patch?