[project @ 2005-05-16 14:39:54 by simonmar]
authorsimonmar <unknown>
Mon, 16 May 2005 14:39:54 +0000 (14:39 +0000)
committersimonmar <unknown>
Mon, 16 May 2005 14:39:54 +0000 (14:39 +0000)
Set BINDIST_DOC_WAYS appropriately depending on which doc-building
tools are available.  The default is to build all of html, ps & pdf if
possible.

Makefile

index 6ce05dc..88e14df 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -293,9 +293,24 @@ binary-dist::
 # via build.mk or the 'make' command-line.
 
 ifndef BINDIST_DOC_WAYS
-BINDIST_DOC_WAYS = html ps
+
+ifneq "$(XSLTPROC)" ""
+BINDIST_DOC_WAYS = html
+ifneq "$(FOP)" ""
+BINDIST_DOC_WAYS += ps pdf
+else
+ifneq "$(PDFXMLTEX)" ""
+BINDIST_DOC_WAYS += pdf
 endif
-# BINDIST_DOC_WAYS =
+ifneq "$(XMLTEX)" ""
+ifneq "$(DVIPS)" ""
+BINDIST_DOC_WAYS += ps
+endif # DVIPS
+endif # XMLTEX
+endif # FOP
+endif # XSLTPROC
+
+endif # BINDIST_DOC_WAYS
 
 binary-dist ::
 ifneq "$(DIR_DOCBOOK_XSL)" ""