mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
Generate xeplist on Docker build
This commit is contained in:
parent
609a081f27
commit
aea6f78a1a
@ -4,10 +4,11 @@
|
||||
FROM xmppxsf/xeps-base:latest
|
||||
|
||||
ARG NCORES=1
|
||||
ARG TARGETS="html inbox-html inbox-xml pdf"
|
||||
ARG TARGETS="html inbox-html inbox-xml pdf xeplist"
|
||||
|
||||
COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile /src/
|
||||
COPY resources/*.pdf /src/resources/
|
||||
COPY tools/*.py /src/tools/
|
||||
COPY inbox/*.xml inbox/*.ent inbox/*.dtd /src/inbox/
|
||||
|
||||
WORKDIR /src
|
||||
|
6
Makefile
6
Makefile
@ -53,6 +53,9 @@ $(OUTDIR)/inbox/%: build/inbox
|
||||
build/inbox:
|
||||
mkdir -p build/inbox
|
||||
|
||||
.PHONY: xeplist
|
||||
xeplist: $(OUTDIR)/xeplist.xml
|
||||
|
||||
.PHONY: html
|
||||
html: $(xep_htmls)
|
||||
|
||||
@ -86,6 +89,9 @@ xep-%.pdf: $(OUTDIR)/xep-%.pdf ;
|
||||
$(all_xep_xmls): $(OUTDIR)/%.xml: %.xml
|
||||
cp $< $@
|
||||
|
||||
$(OUTDIR)/xeplist.xml: $(wildcard *.xml) $(wildcard inbox/*.xml)
|
||||
./tools/extract-metadata.py > $@
|
||||
|
||||
$(EXAMPLESDIR)/%.xml: xep-%.xml $(XMLDEPS) examples.xsl $(EXAMPLESDIR)
|
||||
xsltproc --path $(CURDIR) examples.xsl "$<" > "$@" && echo "Finished building $@"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user