]> granicus.if.org Git - docbook-dsssl/commitdiff
Don't make param.xml files. Instead just make the docparam.xml
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 28 Sep 2006 09:28:15 +0000 (09:28 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 28 Sep 2006 09:28:15 +0000 (09:28 +0000)
files in the subdirs under docsrc.

xsl/docsrc/Makefile.incl

index f9f212c543541daaac4c5ac18b34ca573872d70a..445ac803c7349462e5cf12d09cbbdb106faf9654 100644 (file)
@@ -6,10 +6,23 @@ clean:
 %.refsect1.xml: %.xml $(JREF2REFSECT1)
        $(XSLT) $< $(JREF2REFSECT1) $@
 
-%.xml : %.xsl $(XSL2JREF) ../../docsrc/legalnotice.xml
+%.xml : %.xsl $(XSL2JREF) ../legalnotice.xml
        $(XSLT) $< $(XSL2JREF) /dev/null output-file=$@
-       $(XJPARSE) $@
+       $(XJPARSE) $(XJPARSEFLAGS) $@
 
-docparam.xml: $(VPATH)/param.xsl
-       $(MAKE) -C $(VPATH) param.xml
-       cp $(VPATH)/param.xml docparam.xml
+docparam.xml: $(VPATH)/param.xweb $(PARAMS)
+ifeq ($(findstring website,$(VPATH)),)
+ifeq ($(findstring slides,$(VPATH)),)
+       $(DOCBOOK_SVN)/cvstools/paramchk -m Makefile.param $<
+endif
+endif
+       $(XSLT) $< ../../profiling/profile.xsl $(PARAMPROF) profile.condition=html
+       $(XSLT) $(PARAMPROF) ../../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ifeq ($(ADDNEWLINE),)
+       $(XSLT) $(PARAMSTRIP) $(DOCBOOK_SVN)/litprog/w2docbook.xsl $@
+else
+       $(XSLT) $(PARAMSTRIP) $(DOCBOOK_SVN)/litprog/w2docbook.xsl $@.tmp
+       $(XSLT) $@.tmp $(ADDNEWLINE) $@
+       $(RM) $@.tmp
+endif
+       $(RM) $(PARAMPROF) $(PARAMSTRIP)