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:
@@ -73,6 +73,7 @@ AC_PROG_CPP
|
|||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
|
AC_PATH_PROG([XMLTO], [xmlto], [no])
|
||||||
|
|
||||||
dnl Avoid unused static function warnings
|
dnl Avoid unused static function warnings
|
||||||
CFLAGS="-Wall $CFLAGS"
|
CFLAGS="-Wall $CFLAGS"
|
||||||
|
|||||||
@@ -16,15 +16,26 @@ EXTRA_DIST = add-your-driver.docbook \
|
|||||||
|
|
||||||
|
|
||||||
## convenience targets
|
## convenience targets
|
||||||
xmlto ?= /usr/bin/xmlto
|
|
||||||
developerguidedir ?= $(DESTDIR)$(htmldir)/developer-guide/
|
developerguidedir ?= $(DESTDIR)$(htmldir)/developer-guide/
|
||||||
|
docreleasedir = lcdproc-$(PACKAGE_VERSION)-dev-html
|
||||||
|
|
||||||
.PHONY: install-html-developerguide
|
.PHONY: install-html-developerguide doc-release doc-online
|
||||||
|
|
||||||
install-html-developerguide: $(xmlto) lcdproc-dev.docbook lcdproc-dev.css
|
install-html-developerguide: lcdproc-dev.docbook lcdproc-dev.css
|
||||||
$(mkinstalldirs) $(developerguidedir)
|
$(mkinstalldirs) $(developerguidedir)
|
||||||
$(xmlto) html -o $(developerguidedir) \
|
$(XMLTO) html -o $(developerguidedir) \
|
||||||
--stringparam html.stylesheet=lcdproc-dev.css lcdproc-dev.docbook
|
--stringparam html.stylesheet=lcdproc-dev.css lcdproc-dev.docbook
|
||||||
cp lcdproc-dev.css $(developerguidedir)
|
cp lcdproc-dev.css $(developerguidedir)
|
||||||
|
|
||||||
|
doc-release: lcdproc-dev.docbook lcdproc-dev.css
|
||||||
|
$(XMLTO) html -o $(docreleasedir) \
|
||||||
|
--stringparam html.stylesheet=lcdproc-dev.css lcdproc-dev.docbook
|
||||||
|
cp lcdproc-dev.css $(docreleasedir)
|
||||||
|
$(AMTAR) -czf $(docreleasedir).tar.gz $(docreleasedir)
|
||||||
|
|
||||||
|
doc-online: lcdproc-dev.docbook
|
||||||
|
$(XMLTO) html-nochunks \
|
||||||
|
--stringparam html.stylesheet=lcdproc-dev.css lcdproc-dev.docbook && \
|
||||||
|
mv lcdproc-dev.html current-dev.html
|
||||||
|
|
||||||
## EOF
|
## EOF
|
||||||
|
|||||||
@@ -18,15 +18,26 @@ EXTRA_DIST = bookinfo.docbook \
|
|||||||
|
|
||||||
|
|
||||||
## convenience targets
|
## convenience targets
|
||||||
xmlto ?= /usr/bin/xmlto
|
|
||||||
userguidedir ?= $(DESTDIR)$(htmldir)/user-guide/
|
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)
|
$(mkinstalldirs) $(userguidedir)
|
||||||
$(xmlto) html -o $(userguidedir) \
|
$(XMLTO) html -o $(userguidedir) \
|
||||||
--stringparam html.stylesheet=lcdproc-user.css lcdproc-user.docbook
|
--stringparam html.stylesheet=lcdproc-user.css lcdproc-user.docbook
|
||||||
cp lcdproc-user.css $(userguidedir)
|
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
|
## EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user