From 2aaaf62547d9c703baa1ac10a4e8c482663a7000 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Fri, 13 Jan 2017 00:14:01 -0600 Subject: [PATCH] Fix intermediate build bug in a better way --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c33ff195..2bf826f6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ .SILENT: +.SECONDARY: OUTDIR?=build REFSDIR?=$(OUTDIR)/refs @@ -80,12 +81,10 @@ $(OUTDIR)/%.pdf: %.xml $(XMLDEPS) $(TEXMLDEPS) -e 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' "$(@:.pdf=.tex)" cd $(OUTDIR); xelatex -interaction=batchmode -no-shell-escape "$(notdir $(basename $@)).tex" && echo "Finished building $@" -.PRECIOUS: $(OUTDIR)/%.js -$(OUTDIR)/%.js: %.js +$(OUTDIR)/%.js: %.js $(OUTDIR) cp "$<" "$@" -.PRECIOUS: $(OUTDIR)/%.css -$(OUTDIR)/%.css: %.css +$(OUTDIR)/%.css: %.css $(OUTDIR) cp "$<" "$@" $(EXAMPLESDIR) $(REFSDIR) $(OUTDIR):