doc/Makefile.am: get rid of "api.work" kludge

This commit is contained in:
Peter Marschall 2011-08-15 10:21:19 +02:00
parent 46389f543f
commit 0c7d1bdb65
3 changed files with 12 additions and 28 deletions

View File

@ -12,36 +12,21 @@ man5_MANS = man.out/*.5
endif
html.out/*: html.out
html.out: api.work
html.out:
-rm -fr html.tmp html.out
$(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
man.out/*.1: man.out
man.out: api.work
man.out:
-rm -fr man.tmp man.out
$(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
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:
-rm -fr html.tmp man.tmp api.work html.out man.out
-rm -fr html.tmp man.tmp html.out man.out

View File

@ -3,14 +3,13 @@
<!ENTITY css SYSTEM "api.css">
]>
<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:template name="user.head.content">
<style type="text/css">
<xsl:comment>
&css;
</xsl:comment>
</style>
<style type="text/css">
<xsl:comment>
&css;
</xsl:comment>
</style>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>