]> granicus.if.org Git - docbook-dsssl/commitdiff
Adjusted shared makefile that gets included in builds for all
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 8 Jul 2007 20:19:59 +0000 (20:19 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 8 Jul 2007 20:19:59 +0000 (20:19 +0000)
formats such that is can also be used more cleanly for lib build
too.

xsl/Makefile.incl

index be123988e30673abd07755a669e10117075e190b..20d8436226240925598f57119d2f090532061288 100644 (file)
@@ -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