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

Benjamin Mako Hill || Want to submit a patch?