1 2 3 4 5 6 7 8 9 10 11 12
TARGET = $(foreach dir, $(wildcard */), $(dir)/test.pdf) all: $(TARGET) clean: rm */*.aux */*.blg */*.bbl */*.axp */*.fls */*.fdb* */*.log */*.out %.pdf: %.tex ../apxproof.sty common.tex common.bib cd $(dir $@) && \ latexmk -c && \ latexmk test ; \ cd ..