]> projects.mako.cc - beamer-mako/blobdiff - template/Makefile
promotion from assistant to associate
[beamer-mako] / template / Makefile
index 1dd9601a295ae2415519b64533ff65ba8ac740f6..880c6046aca8489bff3fdf1abf1aa4a65b612e44 100644 (file)
@@ -1,23 +1,28 @@
 #!/usr/bin/make
 
-all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
+all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
 pdf: all
 
 %.pdf: %.tex
-       perl -p -e 's/©//' refs.bib > refs-cleaned.bib
-       recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib
-       mogrify -format pdf figures/logo.svg
-       rubber -fd $<
-       extract-notes $<
-
-clean: 
-       rubber -d --clean *.tex
-       rm -f *.tmp
-       rm -f vc
-       rm -f refs-cleaned.bib
-       rm -f refs-processed.bib
-       rm -f figures/logo.pdf
-       rm -f *.pdfpc
+       latexmk -f -xelatex $<
+       # latexmk -f -pdf -pdflatex="xelatex -synctex=1 %S %O" -verbose -file-line-error -interaction=nonstopmode $<
+       # 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:
+       echo '\setbeameroption{show notes on second screen}' > notes.config
+
+# rules for generating notesonly
+notesonly-config:
+       echo '\setbeameroption{show only notes}' > notes.config
+notesonly: notesonly-config pdf
+
+# rules for generating slides only
+slides-config:
+       echo '' > notes.config
+slides: slides-config pdf
 
 viewpdf: all
        evince *.pdf
@@ -26,8 +31,17 @@ spell:
        aspell -c -t --tex-check-comments -b text.tex
 
 vc:
-       vc-git
+       resources/vc-git
 
+clean: 
+       latexmk -C *.tex
+       rubber -d --clean *.tex
+       rm -f *.tmp
+       rm -f vc
+       rm -f notes.config
+       rm -f *.pdfpc
 
+pdfpc:
+       pdfpc -n right *.pdf
 
-.PHONY: clean all
+.PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell

Benjamin Mako Hill || Want to submit a patch?