moved from rubber to latexmk (at least for now)
[beamer-mako] / template / Makefile
index 042897471f369f307a551e23925d9283211d9129..da907e7f6ec75f7bc01cc15c7f5693b3641ef5f6 100644 (file)
@@ -4,8 +4,10 @@ all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex))
 pdf: all
 
 %.pdf: %.tex 
-       rubber -fd $<
-       extract-notes $<
+       latexmk -f -pdf $<
+       qpdf --qdf --object-streams=disable $@ - | sponge $@
+       sed -e 's|/PageLabels|/BageLapels|g' < $@ |sponge $@
+       qpdf $@ - | sponge $@
 
 # by default, we produce combined notes/slides output
 notes.config:
@@ -24,7 +26,7 @@ slides: slides-config pdf
 viewpdf: all
        evince *.pdf
 
-pdfpc: notes.config
+pdfpc: notes.config pdf
        pdfpc -n right *pdf
 
 spell:
@@ -34,11 +36,11 @@ vc:
        vc-git
 
 clean: 
+       latexmk -C *.tex
        rubber -d --clean *.tex
        rm -f *.tmp
        rm -f vc
        rm -f notes.config
-       rm -f figures/logo.pdf
        rm -f *.pdfpc
 
 .PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell

Benjamin Mako Hill || Want to submit a patch?