resume.pdf: resume.tex
$(eval TMPDIR := $(shell mktemp -d))
@echo "\033[0;94m[PDFLATEX]\033[0m $@"
@pdflatex -interaction=nonstopmode -output-directory=$(TMPDIR) $< >$(TMPDIR)/log.txt 2>&1 || ( cat $(TMPDIR)/log.txt >&2; exit 1 )
@mv $(TMPDIR)/`basename $@` $@
@rm -rf $(TMPDIR)
clean:
rm -f *.pdf