20
0
Files
cdsc_tex/slides_template/Makefile
Benjamin Mako Hill c2e08ea98e several improvments to the beamer template
- moved over to the new notes format (requires the new version of pdfpc)
- pre-process the logo.pdf instead of doing it in the makefile
- addes new support for putting the slide revision (from git) on the
  first slide
2013-02-16 16:57:36 -05:00

45 lines
859 B
Makefile

#!/usr/bin/make
all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex))
pdf: all
%.pdf: %.tex
rubber -fd $<
extract-notes $<
# 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
pdfpc: notes.config
pdfpc -n right *pdf
spell:
aspell -c -t --tex-check-comments -b text.tex
vc:
vc-git
clean:
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