From a2e5d96ba6e3bae243000d0e8a651a85f34cd375 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 5 Jun 2003 22:16:02 +0000 Subject: [PATCH] Add conditional compilation. Use docbook found by autoconf. --- doc/Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.26.2