diff options
Diffstat (limited to 'rules/docbook.mk')
-rw-r--r-- | rules/docbook.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rules/docbook.mk b/rules/docbook.mk new file mode 100644 index 0000000000..2f86363d4c --- /dev/null +++ b/rules/docbook.mk @@ -0,0 +1,24 @@ + +# Build docbook docs + +define docbook +# $1 = dir +# $2 = docname + +$(call clean-target,$1,docbook,$1/$2) + +ifneq "$$(XSLTPROC)" "" +$(call all-target,$1,$1/$2/index.html) + +$1/$2/index.html: $$($1_DOCBOOK_SOURCES) + $$(RM) -r $$(dir $$@) + $$(XSLTPROC) --stringparam base.dir $$(dir $$@) \ + --stringparam use.id.as.filename 1 \ + --stringparam html.stylesheet fptools.css \ + $$(XSLTPROC_LABEL_OPTS) $$(XSLTPROC_OPTS) \ + $$(DIR_DOCBOOK_XSL)/html/chunk.xsl $1/$2.xml + cp mk/fptools.css $$(dir $$@) +endif + +endef + |