mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 15:18:51 -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:
|
||||
.SECONDARY:
|
||||
|
||||
OUTDIR?=build
|
||||
REFSDIR?=$(OUTDIR)/refs
|
||||
@ -7,7 +6,9 @@ EXAMPLESDIR?=$(OUTDIR)/examples
|
||||
XMLDEPS=xep.xsd xep.ent xep.dtd ref.xsl $(OUTDIR)
|
||||
TEXMLDEPS=xep2texml.xsl $(OUTDIR)/xmpp.pdf $(OUTDIR)/xmpp-text.pdf
|
||||
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
|
||||
@ -80,11 +81,11 @@ $(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 $@"
|
||||
|
||||
$(OUTDIR)/%.js: %.js $(OUTDIR)
|
||||
cp "$<" "$@"
|
||||
$(JSTARGETS): $(OUTDIR)
|
||||
cp "$(notdir $@)" "$@"
|
||||
|
||||
$(OUTDIR)/%.css: %.css $(OUTDIR)
|
||||
cp "$<" "$@"
|
||||
$(CSSTARGETS): $(OUTDIR)
|
||||
cp "$(notdir $@)" "$@"
|
||||
|
||||
$(EXAMPLESDIR) $(REFSDIR) $(OUTDIR):
|
||||
mkdir -p "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user