From 67b14b1742b1a394a17886fd3dad354560297c5b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 8 Jul 2007 20:19:59 +0000 Subject: [PATCH] Adjusted shared makefile that gets included in builds for all formats such that is can also be used more cleanly for lib build too. --- xsl/Makefile.incl | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/xsl/Makefile.incl b/xsl/Makefile.incl index be123988e..20d843622 100644 --- a/xsl/Makefile.incl +++ b/xsl/Makefile.incl @@ -1,26 +1,45 @@ -PARAMPROF=.param.profiled -PARAMSTRIP=.param.stripped -PARAMDBKNS=.param.dbkns +XJPARSEFLAGS= -E 0 -w +PARAMPROF=.$(PARAMBASE).profiled +PARAMSTRIP=.$(PARAMBASE).stripped +PARAMDBKNS=.$(PARAMBASE).dbkns FIXPARAMNS=$(DOCBOOK_SVN)/xsl/tools/xsl/build/fix-params-ns.xsl +ifeq (,$(NO_MAKEFILE_PARAM)) include Makefile.param +endif all: $(ALLTARGETS) -param.xsl: param.xweb $(PARAMS) - $(DOCBOOK_SVN)/buildtools/paramchk -m Makefile.param $< - $(XSLT) $< $(DOCBOOK_SVN)/xsl/profiling/profile.xsl $(PARAMPROF) profile.condition=$(PROFILECONDITION) - $(XSLT) $(PARAMPROF) $(DOCBOOK_SVN)/xsl/profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition - $(XSLT) $(PARAMSTRIP) $(DOCBOOK_SVN)/releasetools/xtangle.xsl $(PARAMDBKNS) +$(PARAMBASE).xsl: $(PARAMDBKNS) ifeq ($(ADDNEWLINE),) - $(XSLT) $(PARAMDBKNS) $(FIXPARAMNS) $@ + $(XSLT) $< $(FIXPARAMNS) $@ else - $(XSLT) $(PARAMDBKNS) $(FIXPARAMNS) $@.tmp + $(XSLT) $< $(FIXPARAMNS) $@.tmp $(XSLT) $@.tmp $(ADDNEWLINE) $@ $(RM) $@.tmp endif $(RM) $(PARAMPROF) $(PARAMSTRIP) $(PARAMDBKNS) +$(PARAMBASE).xml: $(PARAMSTRIP) +ifeq ($(ADDNEWLINE),) + $(XSLT) $< $(DOCBOOK_SVN)/releasetools/w2docbook.xsl $@ +else + $(XSLT) $< $(DOCBOOK_SVN)/releasetools/w2docbook.xsl $@.tmp + $(XSLT) $@.tmp $(ADDNEWLINE) $@ + $(RM) $@.tmp +endif + +$(PARAMSTRIP): $(PARAMBASE).xweb $(PARAMS) +ifeq (,$(NO_MAKEFILE_PARAM)) + $(DOCBOOK_SVN)/buildtools/paramchk -m Makefile.param $< +endif + $(XSLT) $< $(DOCBOOK_SVN)/xsl/profiling/profile.xsl $(PARAMPROF) profile.condition=$(PROFILECONDITION) + $(XSLT) $(PARAMPROF) $(DOCBOOK_SVN)/xsl/profiling/strip-attributes.xsl $@ attributes=condition + $(RM) $(PARAMPROF) + +$(PARAMDBKNS): $(PARAMSTRIP) + $(XSLT) $< $(DOCBOOK_SVN)/releasetools/xtangle.xsl $@ + titlepage.templates.xsl: titlepage.templates.xml $(DOCBOOK_SVN)/xsl/template/titlepage.xsl $(XSLT) $< $(DOCBOOK_SVN)/xsl/template/titlepage.xsl $@ @@ -33,5 +52,9 @@ profile-docbook.xsl: docbook.xsl $(DOCBOOK_SVN)/xsl/profiling/xsl2profile.xsl clean: $(CLEANTARGETS) $(RM) $(XSLFILES) + $(RM) $(PARAMSTRIP) + $(RM) $(PARAMDBKNS) +ifeq (,$(NO_MAKEFILE_PARAM)) $(RM) Makefile.param echo "# foo" > Makefile.param +endif -- 2.49.0