Files
lcdproc/docs/lcdproc-user/Makefile.am
T
mmdolze 561744a3cc Check for xmlto using configure and use that when creating the user and
developer guides. Add some convenience targets to help creating documentation
releases.
2011-01-19 19:04:54 +00:00

44 lines
1.2 KiB
Makefile

## Process this file with automake to produce Makefile.in
SUBDIRS = drivers
EXTRA_DIST = bookinfo.docbook \
configuration.docbook \
contact.docbook \
drivers.docbook \
how-to-obtain.docbook \
installation.docbook \
introduction.docbook \
lcdproc-user.css \
lcdproc-user.docbook \
license.docbook \
parameters.ent \
running.docbook \
README.docbook
## convenience targets
userguidedir ?= $(DESTDIR)$(htmldir)/user-guide/
docreleasedir = lcdproc-$(PACKAGE_VERSION)-user-html
.PHONY: install-html-userguide doc-release doc-online
install-html-userguide: lcdproc-user.docbook lcdproc-user.css
$(mkinstalldirs) $(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