SLIDES_TEX=$(wildcard lec[0-9][0-9].tex) SLIDES_PDF=$(patsubst %.tex,%-slides.pdf,$(SLIDES_TEX)) SLIDES_4UP=$(patsubst %.pdf,%-4up.pdf,$(SLIDES_PDF)) MISC_TEX=lec03-handout.tex lec06-proofs.tex lec10-proofs.tex lec12-handout.tex lec20-part1.tex MISC_PDF=$(patsubst %.tex,%.pdf,$(MISC_TEX)) all: $(SLIDES_PDF) $(SLIDES_4UP) $(MISC_PDF) materials.html materials.html: ../mkmaterials.sh . %-slides.pdf: %.tex lecture_defs.tex pdflatex -jobname $(basename $@) $< %-slides-4up.pdf: %-slides.pdf pdfnup --nup 2x2 --suffix '4up' $< %.pdf: %.tex lecture_defs.tex pdflatex $< clean: rm -f lec[0-9][0-9]-slides.pdf rm -f lec[0-9][0-9]-slides-4up.pdf rm -f *.aux *.log *.nav *.out *.snm *.toc *.vrb .PHONY: all clean materials.html