summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsimonmar <unknown>2005-05-16 14:39:54 +0000
committersimonmar <unknown>2005-05-16 14:39:54 +0000
commit37c4e49e4ada28b2a9c6cfb75d6bf860eeaaf465 (patch)
tree3bf3d03e7e259e7807a125e2f2779d6ad911ad07 /Makefile
parent33a84b8c79f0ccd2400996a0e571b0659d4c16ed (diff)
downloadhaskell-37c4e49e4ada28b2a9c6cfb75d6bf860eeaaf465.tar.gz
[project @ 2005-05-16 14:39:54 by simonmar]
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6ce05dc95d..88e14df03f 100644
--- 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)" ""