From: David Schleef Date: Thu, 5 Jun 2003 22:16:02 +0000 (+0000) Subject: Add conditional compilation. Use docbook found by autoconf. X-Git-Tag: r0_7_21~93 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2e5d96ba6e3bae243000d0e8a651a85f34cd375;p=comedilib.git Add conditional compilation. Use docbook found by autoconf. --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 6f3552b..d1dd292 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -5,7 +5,11 @@ SGML= drivers.sgml funcref.sgml glossary.sgml \ EXTRA_DIST=$(SGML) comedilib.sgml funcref mkref drivers.txt mkdr +if HAVE_DOCBOOK all-local: html $(DOC).pdf man +else +all-local: +endif clean-local: rm -rf comedilib.pdf drivers.sgml funcref.sgml @@ -20,15 +24,15 @@ install-data-local: locales = de $(DOC).pdf: $(DOC).sgml $(SGML) - -docbook2pdf $(DOC).sgml + -$(JW_PATH) -f docbook -b pdf $(DOC).sgml html: $(DOC).sgml $(SGML) -mkdir -p html - -docbook2html -o html $(DOC).sgml && touch html + -$(JW_PATH) -f docbook -b html -o html $(DOC).sgml && touch html man: $(DOC).sgml $(SGML) -mkdir -p man - -docbook2man -o man $(DOC).sgml && touch man + -$(JW_PATH) -f docbook -b man -o man $(DOC).sgml && touch man funcref.sgml: funcref mkref ./mkref funcref >funcref.sgml