From: Michael Smith Date: Thu, 28 Sep 2006 09:28:15 +0000 (+0000) Subject: Don't make param.xml files. Instead just make the docparam.xml X-Git-Tag: release/1.79.1~6^2~2489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aac8c04e2c4a3a144954392de7ff884a559da544;p=docbook-dsssl Don't make param.xml files. Instead just make the docparam.xml files in the subdirs under docsrc. --- diff --git a/xsl/docsrc/Makefile.incl b/xsl/docsrc/Makefile.incl index f9f212c54..445ac803c 100644 --- a/xsl/docsrc/Makefile.incl +++ b/xsl/docsrc/Makefile.incl @@ -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)