SOURCES = $(wildcard *.tex) OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES)) all: $(OBJECTS) background.pdf: background.tex background.bib xelatex -halt-on-error $< -o $@ bibtex background xelatex -halt-on-error $< -o $@ xelatex -halt-on-error $< -o $@ idris-proposal.pdf: idris-proposal.tex xelatex -halt-on-error $< -o $@ xelatex -halt-on-error $< -o $@ clean: cleanup rm -f $(OBJECTS) cleanup: rm -f *.log *.aux *.nav *.snm *.toc *.vrb *.out *.bbl