From aea6f78a1a43b769c93a4978c46260e0960a55e3 Mon Sep 17 00:00:00 2001 From: Jonas Wielicki Date: Wed, 23 Aug 2017 13:26:36 +0200 Subject: [PATCH] Generate xeplist on Docker build --- Dockerfile | 3 ++- Makefile | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 29af9e94..f0c22cf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Makefile b/Makefile index cbd03489..ee7985b6 100644 --- a/Makefile +++ b/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 $@"