updated gitignore to ignore xdv
[beamer-mako] / template / Makefile
1 #!/usr/bin/make
2
3 all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
4 pdf: all
5
6 %.pdf: %.tex
7         latexmk -f -xelatex $<
8         # latexmk -f -pdf -pdflatex="xelatex -synctex=1 %S %O" -verbose -file-line-error -interaction=nonstopmode $<
9         # qpdf --qdf --object-streams=disable $@ - | sponge $@
10         # sed -e 's|/PageLabels|/BageLapels|g' < $@ |sponge $@
11         # qpdf $@ - | sponge $@
12
13 # by default, we produce combined notes/slides output
14 notes.config:
15         echo '\setbeameroption{show notes on second screen}' > notes.config
16
17 # rules for generating notesonly
18 notesonly-config:
19         echo '\setbeameroption{show only notes}' > notes.config
20 notesonly: notesonly-config pdf
21
22 # rules for generating slides only
23 slides-config:
24         echo '' > notes.config
25 slides: slides-config pdf
26
27 viewpdf: all
28         evince *.pdf
29
30 spell:
31         aspell -c -t --tex-check-comments -b text.tex
32
33 vc:
34         resources/vc-git
35
36 clean: 
37         latexmk -C *.tex
38         rubber -d --clean *.tex
39         rm -f *.tmp
40         rm -f vc
41         rm -f notes.config
42         rm -f *.pdfpc
43
44 pdfpc:
45         pdfpc -n right *.pdf
46
47 .PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell

Benjamin Mako Hill || Want to submit a patch?