10.0
10.0-rc1
10.1
10.1-rc1
11.0
11.0-rc1
11.0-rc2
11.0-rc3
11.1
11.1-rc1
11.2
11.2-rc1
11.3
11.3-rc1
12.0
12.0-rc1
12.1
12.1-rc1
12.2
12.2-rc1
8.4
9.0
9.1
arm
bdubbs/gcc13
ml-11.0
multilib
renodr/libudev-from-systemd
s6-init
trunk
xry111/arm64
xry111/arm64-12.0
xry111/clfs-ng
xry111/lfs-next
xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
xry111/loongarch-12.2
xry111/mips64el
xry111/multilib
xry111/pip3
xry111/rust-wip-20221008
xry111/update-glibc
Rev | Line | |
---|
[15c7d39] | 1 | # $Source$
|
---|
| 2 | # $Author: xmldoc $
|
---|
| 3 | # $Date: 2007-03-23 21:57:22 +0000 (Fri, 23 Mar 2007) $
|
---|
| 4 | # $Revision: 6759 $
|
---|
| 5 | # vim: number
|
---|
| 6 | #
|
---|
| 7 | # ------------------------------------------------------------------
|
---|
| 8 | # ** Makefile.paramDoc - create param.xsl files w/ embedded doc **
|
---|
| 9 | # ------------------------------------------------------------------
|
---|
| 10 |
|
---|
| 11 | PARAMFILES = $(wildcard ../../*/param.xsl)
|
---|
| 12 | PARAMFILESDOCD = $(foreach base,$(basename $(PARAMFILES)),$(base).docd.xsl)
|
---|
| 13 |
|
---|
| 14 | XSLT=xsltproc
|
---|
| 15 | XSLTFLAGS=
|
---|
| 16 |
|
---|
| 17 | COPYDOC := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \
|
---|
| 18 | xmlns:doc="http://docbook.org/ns/docbook" \
|
---|
| 19 | version="1.0"> \
|
---|
| 20 | <xsl:template match="*[local-name() = 'param']"> \
|
---|
| 21 | <xsl:call-template name="copy-xsl-source"/> \
|
---|
| 22 | </xsl:template> \
|
---|
| 23 | <xsl:template match="*[local-name() = 'attribute-set']"> \
|
---|
| 24 | <xsl:call-template name="copy-xsl-source"/> \
|
---|
| 25 | </xsl:template> \
|
---|
| 26 | <xsl:template name="copy-xsl-source"> \
|
---|
| 27 | <xsl:variable \
|
---|
| 28 | name="source" \
|
---|
| 29 | select="concat('../../params/',@name,'.xml')"/> \
|
---|
| 30 | <xsl:apply-templates select="document($$source)/*[local-name() = 'refentry']"/> \
|
---|
| 31 | <xsl:copy> \
|
---|
| 32 | <xsl:apply-templates select="@* | node()"/> \
|
---|
| 33 | </xsl:copy> \
|
---|
| 34 | </xsl:template> \
|
---|
| 35 | <xsl:template match="node() | @*"> \
|
---|
| 36 | <xsl:copy> \
|
---|
| 37 | <xsl:apply-templates select="@* | node()"/> \
|
---|
| 38 | </xsl:copy> \
|
---|
| 39 | </xsl:template> \
|
---|
| 40 | <xsl:template match="*[local-name() = 'refentry']"> \
|
---|
| 41 | <xsl:text>&\#x0a;</xsl:text> \
|
---|
| 42 | <doc:refentry id="{@*[local-name() = 'id']}"> \
|
---|
| 43 | <xsl:apply-templates/> \
|
---|
| 44 | </doc:refentry> \
|
---|
| 45 | <xsl:text>&\#x0a;</xsl:text> \
|
---|
| 46 | </xsl:template> \
|
---|
| 47 | <xsl:template match="*[local-name() = 'refsynopsisdiv']"/> \
|
---|
| 48 | </xsl:stylesheet>
|
---|
| 49 |
|
---|
| 50 | all: $(PARAMFILESDOCD)
|
---|
| 51 |
|
---|
| 52 | %.docd.xsl: %.xsl
|
---|
| 53 | @echo '$(COPYDOC)' | $(XSLT) $(XSLTFLAGS) - $< > $@
|
---|
| 54 |
|
---|
| 55 | debug:
|
---|
| 56 | @echo $(PARAMFILESDOCD)
|
---|
| 57 |
|
---|
| 58 | clean:
|
---|
| 59 | $(RM) $(PARAMFILESDOCD)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.