X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=dd1e746c88424f2fb600c577edcdaa2c7684e0bf;hb=f8033bd16a17bafe09023790ff374fe571380b5e;hp=a63deada563dce1e9b22dc427c93bb23829fbabe;hpb=0fef954527222d451cb437bb28731f041a301289;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index a63dead..dd1e746 100644 --- a/Makefile +++ b/Makefile @@ -295,26 +295,32 @@ binary-dist:: # binary dist'ing the documentation. # The default documentation to build/install is given below; overrideable # via build.mk or the 'make' command-line. +# +# If BINDIST_DOC_WAYS is set, use that +# If XMLDocWays is set, use that +# Otherwise, figure out what we can build based on configure results ifndef BINDIST_DOC_WAYS +ifneq "$(XMLDocWays)" "" BINDIST_DOC_WAYS = $(XMLDocWays) - -# 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 +else +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 # XMLDocWays endif # BINDIST_DOC_WAYS @@ -328,7 +334,7 @@ binary-dist :: $(BINARY_DIST_DOC_RULES) $(BINARY_DIST_DOC_RULES): binary-dist-doc-%: $(MAKE) -C $* $(MFLAGS) $(BINDIST_DOC_WAYS) $(MAKE) -C $* $(MFLAGS) install-docs \ - MAKING_BIN_DIST=1 + MAKING_BIN_DIST=1 \ XMLDocWays="$(BINDIST_DOC_WAYS)" \ prefix=$(BIN_DIST_DIR) \ exec_prefix=$(BIN_DIST_DIR) \ @@ -396,10 +402,10 @@ endif .PHONY: publish-binary-dist publish-binary-dist : @for i in 0 1 2 3 4 5 6 7 8 9; do \ - echo "Try $$i: $(PublishCp) $(BIN_DIST_TARBALL) $(PublishLocation)"; \ - if $(PublishCp) $(BIN_DIST_TARBALL) $(PublishLocation); then break; fi\ + echo "Try $$i: $(PublishCp) $(BIN_DIST_TARBALL) $(PublishLocation)/dist"; \ + if $(PublishCp) $(BIN_DIST_TARBALL) $(PublishLocation)/dist; then break; fi; \ done - $(PublishCp) -r $(BIN_DIST_DIR)/share/html/* $(PublishLocation)/docs + $(PublishCp) -r $(FPTOOLS_TOP)/$(BIN_DIST_NAME)/share/html/* $(PublishLocation)/docs binary-dist::