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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user