minor fix
[state_of_wikimedia_research_2015] / Makefile
1 #!/usr/bin/make
2
3 # removing vc stuff to accommodate Tilman's setup
4 #all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
5 all: notes.config $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
6 pdf: all
7
8 %.pdf: %.tex 
9         rubber -fd $<
10         qpdf --qdf --object-streams=disable $@ - | sponge $@
11         sed -e 's|/PageLabels|/BageLapels|g' < $@ |sponge $@
12         qpdf $@ - | sponge $@
13
14 # by default, we produce combined notes/slides output
15 notes.config:
16         echo '\setbeameroption{show notes on second screen}' > notes.config
17
18 # rules for generating notesonly
19 notesonly-config:
20         echo '\setbeameroption{show only notes}' > notes.config
21 notesonly: notesonly-config pdf
22
23 # rules for generating slides only
24 slides-config:
25         echo '' > notes.config
26 slides: slides-config pdf
27
28 viewpdf: all
29         evince *.pdf
30
31 pdfpc: notes.config pdf
32         pdfpc -n right *pdf
33
34 spell:
35         aspell -c -t --tex-check-comments -b text.tex
36
37 # Commented out to accommodate Tilman's setup
38 #vc:
39 #       vc-git
40
41 clean: 
42         rubber -d --clean *.tex
43         rm -f *.tmp
44         rm -f vc
45         rm -f notes.config
46         rm -f *.pdfpc
47
48 .PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell

Benjamin Mako Hill || Want to submit a patch?