mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
Remove .SECONDARY makefile hack
And eliminate the buggy implicit rule in the process
This commit is contained in:
parent
2218941384
commit
2384f16c57
13
Makefile
13
Makefile
@ -1,5 +1,4 @@
|
|||||||
.SILENT:
|
.SILENT:
|
||||||
.SECONDARY:
|
|
||||||
|
|
||||||
OUTDIR?=build
|
OUTDIR?=build
|
||||||
REFSDIR?=$(OUTDIR)/refs
|
REFSDIR?=$(OUTDIR)/refs
|
||||||
@ -7,7 +6,9 @@ EXAMPLESDIR?=$(OUTDIR)/examples
|
|||||||
XMLDEPS=xep.xsd xep.ent xep.dtd ref.xsl $(OUTDIR)
|
XMLDEPS=xep.xsd xep.ent xep.dtd ref.xsl $(OUTDIR)
|
||||||
TEXMLDEPS=xep2texml.xsl $(OUTDIR)/xmpp.pdf $(OUTDIR)/xmpp-text.pdf
|
TEXMLDEPS=xep2texml.xsl $(OUTDIR)/xmpp.pdf $(OUTDIR)/xmpp-text.pdf
|
||||||
XEPDIRS=. inbox
|
XEPDIRS=. inbox
|
||||||
HTMLDEPS=xep.xsl $(OUTDIR)/prettify.css $(OUTDIR)/prettify.js $(OUTDIR)/xmpp.css
|
HTMLDEPS=xep.xsl $(CSSTARGETS) $(JSTARGETS)
|
||||||
|
CSSTARGETS=$(OUTDIR)/xmpp.css $(OUTDIR)/prettify.css
|
||||||
|
JSTARGETS=$(OUTDIR)/prettify.js
|
||||||
|
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
@ -80,11 +81,11 @@ $(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 $@"
|
||||||
|
|
||||||
$(OUTDIR)/%.js: %.js $(OUTDIR)
|
$(JSTARGETS): $(OUTDIR)
|
||||||
cp "$<" "$@"
|
cp "$(notdir $@)" "$@"
|
||||||
|
|
||||||
$(OUTDIR)/%.css: %.css $(OUTDIR)
|
$(CSSTARGETS): $(OUTDIR)
|
||||||
cp "$<" "$@"
|
cp "$(notdir $@)" "$@"
|
||||||
|
|
||||||
$(EXAMPLESDIR) $(REFSDIR) $(OUTDIR):
|
$(EXAMPLESDIR) $(REFSDIR) $(OUTDIR):
|
||||||
mkdir -p "$@"
|
mkdir -p "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user