X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=88e14df03f382123a600a18eb91fa1987a03c4a1;hb=4417e97d436e2796bed886cb1a830acb88d3da28;hp=f9e10beca7b9beedea85e0f48c13bcc0370f2bc7;hpb=2b811329caa54eee7c1b159384e1e1aa3a5e9feb;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index f9e10be..88e14df 100644 --- a/Makefile +++ b/Makefile @@ -289,11 +289,28 @@ binary-dist:: fi # # binary dist'ing the documentation. -# Which documentation to build/install is hardcoded below. -# +# The default documentation to build/install is given below; overrideable +# via build.mk or the 'make' command-line. + +ifndef BINDIST_DOC_WAYS -BINDIST_DOC_WAYS = html ps -# BINDIST_DOC_WAYS = +ifneq "$(XSLTPROC)" "" +BINDIST_DOC_WAYS = html +ifneq "$(FOP)" "" +BINDIST_DOC_WAYS += ps pdf +else +ifneq "$(PDFXMLTEX)" "" +BINDIST_DOC_WAYS += pdf +endif +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)" ""