TEXs = $(wildcard *.tex) PDFs = $(TEXs:%.tex=%.pdf) all: $(PDFs) %.pdf: %.tex latexmk -pdf $< clean: rm -f texs $(PDFs) packliste.pdf teilnehmer-strichliste.pdf teilnehmerliste.pdf realclean: clean rm -f $(TEXs) .PHONY: clean all