diff --git a/math-replay/Makefile b/math-replay/Makefile index ee31d20..918cb2d 100644 --- a/math-replay/Makefile +++ b/math-replay/Makefile @@ -6,6 +6,8 @@ ALL += $(patsubst %.tex,%.pdf,$(shell find . -name '*.tex')) haml $^ $@ %.pdf:%.tex - texi2pdf $^ -o $@ + texi2pdf $^ -o $@ && \ + rm -vf $(patsubst %.pdf,%.aux,$(notdir $@)) \ + $(patsubst %.pdf,%.log,$(notdir $@)) all: $(ALL)