TEXFILES=$(wildcard *.tex) PDFFILES=$(TEXFILES:.tex=.pdf) BASENAMES=$(TEXFILES:.tex=.) all: talk again watchtalk clean cleanup help talks: $(PDFFILES) $(PDFFILES): %.pdf : %.tex beamer*.sty pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true again : for FILE in $(TEXFILES); do \ pdflatex "$$FILE"; \ done watchtalks : while true; do ! make -q talks && make talks; sleep 0.5; done install : ./install.sh clean : rm -f *~ rmtex $(BASENAMES) cleanup : clean rm -f $(PDFFILES) help : @echo -e \ "make talks: make the pdf files of the talks.\n"\ "make again: run latex and make the pdf files of the talks,\n"\ " no matter whether you changed the .tex files or not.\n\n"\ "make watchtalk: make the pdf files of the talks\n"\ " whenever the tex files are modified.\n"\ "make install: install the style files.\n"\ "make clean: remove all intermediate files,\n"\ " just leave the source files and the final pdf file.\n"\ "make cleanup: remove all intermediate files as well as\n"\ " the final pdf file.\n"