82020c383a982b0abf2f612f2dc3ef785f7816e7
[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         rubber -fd $<
8         extract-notes $<
9
10 # by default, we produce combined notes/slides output
11 notes.config:
12         echo '\setbeameroption{show notes on second screen}' > notes.config
13
14 # rules for generating notesonly
15 notesonly-config:
16         echo '\setbeameroption{show only notes}' > notes.config
17 notesonly: notesonly-config pdf
18
19 # rules for generating slides only
20 slides-config:
21         echo '' > notes.config
22 slides: slides-config pdf
23
24 viewpdf: all
25         evince *.pdf
26
27 pdfpc: notes.config
28         pdfpc -n right *pdf
29
30 spell:
31         aspell -c -t --tex-check-comments -b text.tex
32
33 vc:
34         vc-git
35
36 clean: 
37         rubber -d --clean *.tex
38         rm -f *.tmp
39         rm -f vc
40         rm -f notes.config
41         rm -f *.pdfpc
42
43 .PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell

Benjamin Mako Hill || Want to submit a patch?