From: Bernd Porr Date: Mon, 23 Apr 2012 11:22:16 +0000 (+0100) Subject: automake now checks for dblatex and the pdf version X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a76f63cd3ca694fb254023902a628d2f7b7752a;p=comedilib.git automake now checks for dblatex and the pdf version of the comedi manual is now generated --- diff --git a/configure.ac b/configure.ac index 82c400f..88dabf5 100644 --- a/configure.ac +++ b/configure.ac @@ -180,10 +180,16 @@ if test "$ENABLE_DOCBOOK" == "yes"; then if test "$XMLTO" = "no" ; then AC_MSG_WARN([xmlto not found, will not be able to rebuild documentation]) fi + AC_PATH_PROG(DBLATEX, dblatex, no) + if test "$DBLATEX" = "no" ; then + AC_MSG_WARN([dblatex not found, will not be able to generate pdfs]) + fi else XMLTO="no" + DBLATEX="no" fi AM_CONDITIONAL(HAVE_XMLTO, [test "$XMLTO" != "no"]) +AM_CONDITIONAL(HAVE_DBLATEX, [test "$DBLATEX" != "no"]) pcmciadir="\${sysconfdir}/pcmcia" AC_SUBST(pcmciadir) diff --git a/doc/Makefile.am b/doc/Makefile.am index f304226..be4fb63 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -20,8 +20,11 @@ all_html = $(srcdir)/doc_html install_html = install_html uninstall_html = uninstall_html -# dist_pdf_DATA = comedilib.pdf +if HAVE_DBLATEX +dist_pdf_DATA = comedilib.pdf +else dist_pdf_DATA = +endif all_man = $(srcdir)/man install_man = install_man @@ -74,7 +77,7 @@ uninstall_man: for each in `find $(srcdir)/man/ -name '*.3'`; do $(RM) $(DESTDIR)$(mandir)/man3/`basename $$each` ; done comedilib.pdf: $(XML) - $(XMLTO) -o $(srcdir)/pdf --skip-validation pdf $(srcdir)/comedilib.xml + $(DBLATEX) -o $(srcdir)/pdf -t pdf $(srcdir)/comedilib.xml funcref.xml: funcref mkref $(srcdir)/mkref $(srcdir)/funcref >$(srcdir)/funcref.xml