BUILD_DIR=build build: $(BUILD_DIR)/report.pdf .PHONY: build $(BUILD_DIR)/report.pdf: report.tex @mkdir -p $(BUILD_DIR) @xelatex -interaction=nonstopmode -halt-on-error -shell-escape -output-directory=$(BUILD_DIR) report.tex # Re-running a second time for href to be happy @xelatex -interaction=batchmode -halt-on-error -shell-escape -output-directory=$(BUILD_DIR) report.tex >/dev/null