PARAMPROF=.param.profiled
PARAMSTRIP=.param.stripped
-LREFENTRY=../tools/xsl/build/lrefentry.xsl
include Makefile.param
all: titlepage.templates.xsl param.xsl profile-docbook.xsl
-param.html: param.xml
- $(XSLT) $< $(LREFENTRY) $@
-
-param.xml: param.xweb $(PARAMS)
- ../../cvstools/paramchk -m Makefile.param $<
- $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=fo
- $(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
- $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@
- $(RM) $(PARAMPROF) $(PARAMSTRIP)
-
param.xsl: param.xweb $(PARAMS)
../../cvstools/paramchk -m Makefile.param $<
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=fo
$(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ifeq ($(ADDNEWLINE),)
$(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@
+else
+ $(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@.tmp
+ $(XSLT) $@.tmp $(ADDNEWLINE) $@
+ $(RM) $@.tmp
+endif
$(RM) $(PARAMPROF) $(PARAMSTRIP)
titlepage.templates.xsl: titlepage.templates.xml ../template/titlepage.xsl
Makefile.param:
../../cvstools/paramchk -m $@ param.xweb
+ $(MAKE)
profile-docbook.xsl: docbook.xsl ../profiling/xsl2profile.xsl
$(XSLT) $< ../profiling/xsl2profile.xsl $@
clean:
- $(RM) param.xml param.html param.xsl \
+ $(RM) param.xml \
profile-docbook.xsl \
titlepage.templates.xsl
$(RM) Makefile.param
PARAMPROF=.param.profiled
PARAMSTRIP=.param.stripped
-LREFENTRY=../tools/xsl/build/lrefentry.xsl
include Makefile.param
all: titlepage.templates.xsl param.xsl \
profile-docbook.xsl profile-chunk-code.xsl
-xml: param.xml
-
-html: param.html
-
-param.html: param.xml titlepage.templates.xsl
- $(XSLT) $< $(LREFENTRY) $@
-
-param.xml: param.xweb $(PARAMS)
- ../../cvstools/paramchk -m Makefile.param $<
- $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
- $(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
- $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@
- $(RM) $(PARAMPROF) $(PARAMSTRIP)
-
param.xsl: param.xweb $(PARAMS)
../../cvstools/paramchk -m Makefile.param $<
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
$(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ifeq ($(ADDNEWLINE),)
$(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@
+else
+ $(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@.tmp
+ $(XSLT) $@.tmp $(ADDNEWLINE) $@
+ $(RM) $@.tmp
+endif
$(RM) $(PARAMPROF) $(PARAMSTRIP)
titlepage.templates.xsl: titlepage.templates.xml ../template/titlepage.xsl
Makefile.param:
../../cvstools/paramchk -m $@ param.xweb
- make
+ $(MAKE)
profile-docbook.xsl: docbook.xsl ../profiling/xsl2profile.xsl
$(XSLT) $< ../profiling/xsl2profile.xsl $@
$(XSLT) $< ../profiling/xsl2profile.xsl $@
clean:
- $(RM) param.xml param.html param.xsl \
+ $(RM) param.xsl \
profile-docbook.xsl profile-chunk-code.xsl \
titlepage.templates.xsl
$(RM) Makefile.param
lib.xml: lib.xweb
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
$(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ifeq ($(ADDNEWLINE),)
$(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@
+else
+ $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@.tmp
+ $(XSLT) $@.tmp $(ADDNEWLINE) $@
+ $(RM) $@.tmp
+endif
$(RM) $(PARAMPROF) $(PARAMSTRIP)
lib.xsl: lib.xweb
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
$(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ifeq ($(ADDNEWLINE),)
$(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@
+else
+ $(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@.tmp
+ $(XSLT) $@.tmp $(ADDNEWLINE) $@
+ $(RM) $@.tmp
+endif
$(RM) $(PARAMPROF) $(PARAMSTRIP)
clean:
PARAMPROF=.param.profiled
PARAMSTRIP=.param.stripped
HTML2ROFF=../tools/xsl/build/html2roff.xsl
-LREFENTRY=../tools/xsl/build/lrefentry.xsl
include Makefile.param
all: param.xsl html-synop.xsl
-xml: param.xml
-
-html: param.html
-
-param.html: param.xml
- $(XSLT) $< $(LREFENTRY) $@
-
-param.xml: param.xweb $(PARAMS)
- ../../cvstools/paramchk -m Makefile.param $<
- $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
- $(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
-ifeq ($(ADDNEWLINE),)
- $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@
-else
- $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@.tmp
- $(XSLT) $@.tmp $(ADDNEWLINE) $@
- $(RM) $@.tmp
-endif
- $(RM) $(PARAMPROF) $(PARAMSTRIP)
-
param.xsl: param.xweb $(PARAMS)
../../cvstools/paramchk -m Makefile.param $<
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
Makefile.param:
../../cvstools/paramchk -m $@ param.xweb
- make
+ $(MAKE)
html-synop.xsl: ../html/synop.xsl
$(XSLT) $< $(HTML2ROFF) $@
--- /dev/null
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+ <xsl:import href="./identity.xsl"/>
+
+ <xsl:output method="xml"
+ indent="no"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ <xsl:text>
</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+
+ <xsl:output method="xml"
+ indent="no"/>
+
+ <xsl:template match="node() | @*">
+ <xsl:copy>
+ <xsl:apply-templates select="@* | node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
PARAMPROF=.param.profiled
PARAMSTRIP=.param.stripped
-LREFENTRY=../tools/xsl/build/lrefentry.xsl
WORDML = $(STYLESHEETDIR)/docbook.xsl
PAGES = $(STYLESHEETDIR)/docbook-pages.xsl
all: param.xsl
-xml: param.xml
-
-html: param.html
-
-param.html: param.xml
- $(XSLT) $< $(LREFENTRY) $@
-
-param.xml: param.xweb $(PARAMS)
- ../../cvstools/paramchk -m Makefile.param $<
- $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
- $(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
- $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@
- $(RM) $(PARAMPROF) $(PARAMSTRIP)
-
param.xsl: param.xweb
../../cvstools/paramchk -m Makefile.param $<
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=wordml
$(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ifeq ($(ADDNEWLINE),)
$(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@
+else
+ $(XSLT) $(PARAMSTRIP) ../../litprog/xtangle.xsl $@.tmp
+ $(XSLT) $@.tmp $(ADDNEWLINE) $@
+ $(RM) $@.tmp
+endif
$(RM) $(PARAMPROF) $(PARAMSTRIP)
Makefile.param:
../../cvstools/paramchk -m $@ param.xweb
+ $(MAKE)
clean:
- $(RM) param.xml param.html param.xsl
+ $(RM) param.xsl
$(RM) Makefile.param
echo "# foo" > Makefile.param