Browse Source

make xml: Include XEP XSL in output

This is referenced by XML files so should be included
feature/xep-0368-dot-clarification
Kim Alvefur 7 months ago
parent
commit
d60b6a03ba
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      Makefile

+ 6
- 2
Makefile View File

@@ -26,6 +26,7 @@ all_xeps=$(xeps) $(proto_xeps)
xep_xmls=$(patsubst %.xml,$(OUTDIR)/%.xml,$(xeps))
proto_xep_xmls=$(patsubst %.xml,$(OUTDIR)/%.xml,$(proto_xeps))
all_xep_xmls=$(xep_xmls) $(proto_xep_xmls)
xep_ancillary=$(patsubst %,$(OUTDIR)/%,xep.xsl)

xep_htmls=$(patsubst %.xml,$(OUTDIR)/%.html,$(xeps))
proto_xep_htmls=$(patsubst %.xml,$(OUTDIR)/%.html,$(proto_xeps))
@@ -64,7 +65,7 @@ xeplist: $(OUTDIR)/xeplist.xml
html: $(xep_htmls)

.PHONY: xml
xml: $(xep_xmls)
xml: $(xep_xmls) $(xep_ancillary)

.PHONY: inbox-html
inbox-html: $(proto_xep_htmls)
@@ -90,7 +91,10 @@ xep-%.html: $(OUTDIR)/xep-%.html ;
.PHONY: xep-%.pdf
xep-%.pdf: $(OUTDIR)/xep-%.pdf ;

$(all_xep_xmls): $(OUTDIR)/%.xml: %.xml
$(all_xep_xmls): $(OUTDIR)/%.xml: %.xml $(OUTDIR)
cp $< $@

$(OUTDIR)/xep.xsl: xep.xsl $(OUTDIR)
cp $< $@

$(OUTDIR)/xeplist.xml: $(wildcard *.xml) $(wildcard inbox/*.xml)

Loading…
Cancel
Save