The branch, master has been updated via 3cbeaf4 docs-xml: add basic Makefile dependencies for targets that use xsltproc via 9b27948 docs-xml: set a reasonable XML_CATALOG_FILES in Makefile via a2f5b3b docs-xml: generate build/catalog.xml via Makefile target from 2245a4b autobuild: fix quoting of --restrict-tests
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 3cbeaf40937082bd7072d715ae02aa0989835432 Author: Björn Jacke <bja...@samba.org> Date: Thu Jan 4 16:35:12 2018 +0100 docs-xml: add basic Makefile dependencies for targets that use xsltproc Signed-off-by: Bjoern Jacke <bja...@samba.org> Reviewed-by: Karolin Seeger <ksee...@samba.org> Autobuild-User(master): Björn Jacke <b...@sernet.de> Autobuild-Date(master): Fri Jan 5 19:55:29 CET 2018 on sn-devel-144 commit 9b27948d6540b17d99bed3e39e75b2508f05a489 Author: Björn Jacke <bja...@samba.org> Date: Thu Jan 4 16:19:13 2018 +0100 docs-xml: set a reasonable XML_CATALOG_FILES in Makefile Signed-off-by: Bjoern Jacke <bja...@samba.org> Reviewed-by: Karolin Seeger <ksee...@samba.org> commit a2f5b3b8e12bfc3d7182a406526b0d7edaf58a31 Author: Björn Jacke <bja...@samba.org> Date: Thu Jan 4 16:12:28 2018 +0100 docs-xml: generate build/catalog.xml via Makefile target Signed-off-by: Bjoern Jacke <bja...@samba.org> Reviewed-by: Karolin Seeger <ksee...@samba.org> ----------------------------------------------------------------------- Summary of changes: docs-xml/Makefile | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/Makefile b/docs-xml/Makefile index d69238b..ba49eae 100644 --- a/docs-xml/Makefile +++ b/docs-xml/Makefile @@ -6,6 +6,8 @@ # Jelmer Vernooij <jel...@samba.org> include Makefile.settings +export XML_CATALOG_FILES := $(XML_CATALOG_FILES) /etc/xml/catalog $(shell pwd)/build/catalog.xml + # Docs to build MAIN_DOCS = $(patsubst %/index.xml,%,$(wildcard */index.xml)) MANPAGES = $(sort $(wildcard $(MANPAGEDIR)/*.?.xml)) @@ -16,6 +18,8 @@ DBLATEX_OPTIONS = -p xslt/latex.xsl -i xslt/latex DATETIME := $(shell date +%Y%m%d%H%M%S) +XSLTPROC_DEPS = build/catalog.xml build/DTD/samba.build.version + ifeq ($(PROFILE), Y) XSLTPROC += --profile --load-trace --timing endif @@ -87,16 +91,16 @@ check:: validate # Intermediate docbook docs # -$(DOCBOOKDIR)/%.xml: %/index.xml xslt/expand-sambadoc.xsl +$(DOCBOOKDIR)/%.xml: %/index.xml xslt/expand-sambadoc.xsl $(XSLTPROC_DEPS) @echo "Converting Samba-specific tags for $*..." @mkdir -p $(@D) @$(XSLTPROC) --stringparam latex.imagebasedir "$*/" --stringparam noreference 0 --xinclude --output $@ xslt/expand-sambadoc.xsl $< -$(DOCBOOKDIR)/manpages/%.xml: $(MANPAGEDIR)/%.xml xslt/expand-sambadoc.xsl Makefile.settings +$(DOCBOOKDIR)/manpages/%.xml: $(MANPAGEDIR)/%.xml xslt/expand-sambadoc.xsl Makefile.settings $(XSLTPROC_DEPS) @mkdir -p $(@D) $(XSLTPROC) --xinclude --stringparam noreference 0 --output $@ xslt/expand-sambadoc.xsl $< -$(DOCBOOKDIR)/manpages/index.xml: $(MANPAGES) xslt/manpage-summary.xsl +$(DOCBOOKDIR)/manpages/index.xml: $(MANPAGES) xslt/manpage-summary.xsl $(XSLTPROC_DEPS) @mkdir -p $(@D) echo "<article><variablelist>" > $@ $(XSLTPROC) xslt/manpage-summary.xsl $(MANPAGES) >> $@ @@ -107,22 +111,22 @@ $(HTMLDIR)/index.html: htmldocs.html @mkdir -p $(@D) cp $< $@ -$(HTMLDIR)/%/index.html: $(DOCBOOKDIR)/%.xml $(HTMLDIR)/%/samba.css xslt/html-chunk.xsl %-images-html-chunks +$(HTMLDIR)/%/index.html: $(DOCBOOKDIR)/%.xml $(HTMLDIR)/%/samba.css xslt/html-chunk.xsl %-images-html-chunks $(XSLTPROC_DEPS) @mkdir -p $(@D) $(XSLTPROC) --stringparam base.dir "$(HTMLDIR)/$*/" xslt/html-chunk.xsl $< # Single large HTML files -$(OUTPUTDIR)/%/samba.css: xslt/html/samba.css +$(OUTPUTDIR)/%/samba.css: xslt/html/samba.css $(XSLTPROC_DEPS) @mkdir -p $(@D) cp $< $@ $(patsubst %,$(HTMLDIR)/%.html,$(MAIN_DOCS)): $(HTMLDIR)/%.html: %-images-html-single -$(HTMLDIR)/%.html: $(DOCBOOKDIR)/%.xml $(HTMLDIR)/samba.css xslt/html.xsl +$(HTMLDIR)/%.html: $(DOCBOOKDIR)/%.xml $(HTMLDIR)/samba.css xslt/html.xsl $(XSLTPROC_DEPS) $(XSLTPROC) --output $@ xslt/html.xsl $< # Attributions -%-attributions.xml: +%-attributions.xml: $(XSLTPROC_DEPS) @echo "Generating attributions file $@ from $*/" @cp -f templates/attributions.xml $@ @$(XSLTPROC) --xinclude -o $@ xslt/generate-attributions.xsl $*/index.xml @@ -139,7 +143,7 @@ $(TXTDIR)/%.txt: $(HTMLDIR)/%.html @$(DBLATEX) $(DBLATEX_OPTIONS) -t tex -o $@ $< # Dependency files -%.d: $(DOCBOOKDIR)/%.xml xslt/generate-dependencies.xsl +%.d: $(DOCBOOKDIR)/%.xml xslt/generate-dependencies.xsl $(XSLTPROC_DEPS) @echo "Generating dependency file for $*" @$(XSLTPROC) --novalid \ --stringparam txtbasedir "$(TXTDIR)/$*/" \ @@ -193,7 +197,7 @@ $(PSDIR)/%.ps: %/index.xml $(PSDIR) xslt/latex.xsl %-images-latex-eps %.pdf: %.svg $(INKSCAPE) -z -f $(abspath $<) --export-pdf=$(abspath $@) -$(HTMLHELPDIR)/%: $(DOCBOOKDIR)/%.xml %-images-htmlhelp +$(HTMLHELPDIR)/%: $(DOCBOOKDIR)/%.xml %-images-htmlhelp $(XSLTPROC_DEPS) $(XSLTPROC) --stringparam htmlhelp.chm $*.chm \ --stringparam manifest.in.base.dir "$@/" \ --stringparam base.dir "$@/" \ @@ -253,6 +257,9 @@ $(PEARSONDIR)/%.report.html: $(PEARSONDIR)/%.xml %-validate: %/index.xml cd $(<D) && $(XMLLINT) --xinclude --noent --postvalid --noout $(<F) +build/catalog.xml: build/catalog.xml.in + sed -e "s|@abs_top_srcdir@|`pwd`|g;s|@abs_top_builddir@|`pwd`|g" < build/catalog.xml.in > build/catalog.xml + samples: $(DOCBOOKDIR)/Samba3-HOWTO.xml xslt/extract-examples.xsl scripts/indent-smb.conf.pl @mkdir -p examples $(XSLTPROC) --xinclude xslt/extract-examples.xsl $< > /dev/null 2> examples/README -- Samba Shared Repository