Check for xmlto using configure and use that when creating the user and

developer guides. Add some convenience targets to help creating documentation
releases.
This commit is contained in:
mmdolze
2011-01-19 19:04:54 +00:00
parent fc545022f8
commit 561744a3cc
3 changed files with 32 additions and 9 deletions
+15 -4
View File
@@ -18,15 +18,26 @@ EXTRA_DIST = bookinfo.docbook \
## convenience targets
xmlto ?= /usr/bin/xmlto
userguidedir ?= $(DESTDIR)$(htmldir)/user-guide/
docreleasedir = lcdproc-$(PACKAGE_VERSION)-user-html
.PHONY: install-html-userguide
.PHONY: install-html-userguide doc-release doc-online
install-html-userguide: $(xmlto) lcdproc-user.docbook lcdproc-user.css
install-html-userguide: lcdproc-user.docbook lcdproc-user.css
$(mkinstalldirs) $(userguidedir)
$(xmlto) html -o $(userguidedir) \
$(XMLTO) html -o $(userguidedir) \
--stringparam html.stylesheet=lcdproc-user.css lcdproc-user.docbook
cp lcdproc-user.css $(userguidedir)
doc-release: lcdproc-user.docbook lcdproc-user.css
$(XMLTO) html -o $(docreleasedir) \
--stringparam html.stylesheet=lcdproc-user.css lcdproc-user.docbook
cp lcdproc-user.css $(docreleasedir)
$(AMTAR) -czf $(docreleasedir).tar.gz $(docreleasedir)
doc-online: lcdproc-user.docbook
$(XMLTO) html-nochunks \
--stringparam html.stylesheet=lcdproc-user.css lcdproc-user.docbook && \
mv lcdproc-user.html current-user.html
## EOF