added a perl script to clean out some common broken encoding stuff
[cdsc_tex.git] / 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 %.pdf: %.tex
8         perl -p -e 's/©//' refs.bib > refs-cleaned.bib
9         perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-cleaned.bib |sponge refs-cleaned.bib
10         recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib
11         rubber -fd $<
12
13 clean: 
14         rubber -d --clean *.tex
15         rm -f *.tmp
16         rm -f vc
17         rm -f refs-cleaned.bib
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

Community Data Science Collective || Want to submit a patch?