automake now checks for dblatex and the pdf version

of the comedi manual is now generated
This commit is contained in:
Bernd Porr 2012-04-23 12:22:16 +01:00
parent 0d8c6e9661
commit 9a76f63cd3
2 changed files with 11 additions and 2 deletions

View file

@ -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)

View file

@ -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