1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00

Fix intermediate build bug in a better way

This commit is contained in:
Sam Whited 2017-01-13 00:14:01 -06:00
parent 546272f4c5
commit 2aaaf62547

View File

@ -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):