mirror of https://github.com/moparisthebest/xeps
Fix intermediate build bug in a better way
This commit is contained in:
parent
546272f4c5
commit
2aaaf62547
7
Makefile
7
Makefile
|
@ -1,4 +1,5 @@
|
||||||
.SILENT:
|
.SILENT:
|
||||||
|
.SECONDARY:
|
||||||
|
|
||||||
OUTDIR?=build
|
OUTDIR?=build
|
||||||
REFSDIR?=$(OUTDIR)/refs
|
REFSDIR?=$(OUTDIR)/refs
|
||||||
|
@ -80,12 +81,10 @@ $(OUTDIR)/%.pdf: %.xml $(XMLDEPS) $(TEXMLDEPS)
|
||||||
-e 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' "$(@:.pdf=.tex)"
|
-e 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' "$(@:.pdf=.tex)"
|
||||||
cd $(OUTDIR); xelatex -interaction=batchmode -no-shell-escape "$(notdir $(basename $@)).tex" && echo "Finished building $@"
|
cd $(OUTDIR); xelatex -interaction=batchmode -no-shell-escape "$(notdir $(basename $@)).tex" && echo "Finished building $@"
|
||||||
|
|
||||||
.PRECIOUS: $(OUTDIR)/%.js
|
$(OUTDIR)/%.js: %.js $(OUTDIR)
|
||||||
$(OUTDIR)/%.js: %.js
|
|
||||||
cp "$<" "$@"
|
cp "$<" "$@"
|
||||||
|
|
||||||
.PRECIOUS: $(OUTDIR)/%.css
|
$(OUTDIR)/%.css: %.css $(OUTDIR)
|
||||||
$(OUTDIR)/%.css: %.css
|
|
||||||
cp "$<" "$@"
|
cp "$<" "$@"
|
||||||
|
|
||||||
$(EXAMPLESDIR) $(REFSDIR) $(OUTDIR):
|
$(EXAMPLESDIR) $(REFSDIR) $(OUTDIR):
|
||||||
|
|
Loading…
Reference in New Issue