TEX = pandoc src = template.tex handin.md FLAGS = --latex-engine=xelatex output.pdf : $(src) $(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS) .PHONY: clean clean : rm output.pdf