doc/Makefile.am: get rid of "api.work" kludge
This commit is contained in:
parent
46389f543f
commit
0c7d1bdb65
|
@ -12,36 +12,21 @@ man5_MANS = man.out/*.5
|
||||||
endif
|
endif
|
||||||
|
|
||||||
html.out/*: html.out
|
html.out/*: html.out
|
||||||
html.out: api.work
|
html.out:
|
||||||
-rm -fr html.tmp html.out
|
-rm -fr html.tmp html.out
|
||||||
$(MKDIR_P) html.tmp
|
$(MKDIR_P) html.tmp
|
||||||
$(XSLTPROC) --nonet --path "$(srcdir)/api" --xinclude -o "html.tmp/tools.html" "api.work/html.xsl" "$(srcdir)/tools/tools.xml"
|
$(XSLTPROC) --nonet --path "$(srcdir):$(xslstylesheetsdir)/html" --xinclude -o "html.tmp/tools.html" "html.xsl" "$(srcdir)/tools/tools.xml"
|
||||||
mv html.tmp html.out
|
mv html.tmp html.out
|
||||||
|
|
||||||
man.out/*.1: man.out
|
man.out/*.1: man.out
|
||||||
man.out: api.work
|
man.out:
|
||||||
-rm -fr man.tmp man.out
|
-rm -fr man.tmp man.out
|
||||||
$(MKDIR_P) man.tmp
|
$(MKDIR_P) man.tmp
|
||||||
$(XSLTPROC) --nonet --path "$(srcdir)/api" --xinclude -o "man.tmp/" "api.work/man.xsl" "$(srcdir)/tools/tools.xml"
|
$(XSLTPROC) --nonet --path "$(srcdir):$(xslstylesheetsdir)/manpages" --xinclude -o "man.tmp/" "man.xsl" "$(srcdir)/tools/tools.xml"
|
||||||
mv man.tmp man.out
|
mv man.tmp man.out
|
||||||
|
|
||||||
man.out/*.5: man.out/*.1
|
man.out/*.5: man.out/*.1
|
||||||
|
|
||||||
#
|
|
||||||
# This part is needed as found no
|
|
||||||
# way to make xsltproc find xsl-stylesheets
|
|
||||||
# in builddir while xsl on srcdir
|
|
||||||
#
|
|
||||||
api.work: \
|
|
||||||
$(abs_srcdir)/html.xsl \
|
|
||||||
$(abs_srcdir)/man.xsl \
|
|
||||||
$(abs_srcdir)/api.css
|
|
||||||
-rm -fr api.work
|
|
||||||
$(MKDIR_P) api.work
|
|
||||||
$(LN_S) "$(abs_srcdir)/html.xsl" api.work/html.xsl
|
|
||||||
$(LN_S) "$(abs_srcdir)/man.xsl" api.work/man.xsl
|
|
||||||
$(LN_S) "$(abs_srcdir)/api.css" api.work/api.css
|
|
||||||
$(LN_S) "$(xslstylesheetsdir)" api.work/xsl-stylesheets
|
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
-rm -fr html.tmp man.tmp api.work html.out man.out
|
-rm -fr html.tmp man.tmp html.out man.out
|
||||||
|
|
13
doc/html.xsl
13
doc/html.xsl
|
@ -3,14 +3,13 @@
|
||||||
<!ENTITY css SYSTEM "api.css">
|
<!ENTITY css SYSTEM "api.css">
|
||||||
]>
|
]>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
<xsl:import href="xsl-stylesheets/html/docbook.xsl"/>
|
<xsl:import href="docbook.xsl"/>
|
||||||
<xsl:param name="toc.section.depth" select="0"/>
|
<xsl:param name="toc.section.depth" select="0"/>
|
||||||
<xsl:template name="user.head.content">
|
<xsl:template name="user.head.content">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
<xsl:comment>
|
<xsl:comment>
|
||||||
&css;
|
&css;
|
||||||
</xsl:comment>
|
</xsl:comment>
|
||||||
</style>
|
</style>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
<xsl:import href="xsl-stylesheets/manpages/docbook.xsl"/>
|
<xsl:import href="docbook.xsl"/>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Reference in New Issue