Add conditional compilation. Use docbook found by autoconf.
authorDavid Schleef <ds@schleef.org>
Thu, 5 Jun 2003 22:16:02 +0000 (22:16 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 5 Jun 2003 22:16:02 +0000 (22:16 +0000)
doc/Makefile.am

index 6f3552b71b7251df5d3d53f306007a18d742595d..d1dd29291a2a09bd0a117deeecdb7fb61f781437 100644 (file)
@@ -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