diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-10-26 12:24:56 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-10-26 12:24:56 +0000 |
commit | f9c199a1a2865bdb9e8fb318a48058d7e4bfaf64 (patch) | |
tree | 2ccd91b1d7eee0025421a4388aa415c0d2997e10 /mk/install.mk | |
parent | d59e5356ca49548f9a3e51e03742adec72356a94 (diff) | |
download | haskell-f9c199a1a2865bdb9e8fb318a48058d7e4bfaf64.tar.gz |
install the Cabal docs, and make them show up in a binary distribution
Diffstat (limited to 'mk/install.mk')
-rw-r--r-- | mk/install.mk | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mk/install.mk b/mk/install.mk index d2e8d030a4..dd8dfc4946 100644 --- a/mk/install.mk +++ b/mk/install.mk @@ -266,9 +266,13 @@ endif endif ifneq "$(strip $(INSTALL_XML_DOC))" "" +ifeq "$(DOC_SUBDIR)" "" +DOC_SUBDIR=docs/$(XML_DOC) +endif + binary-dist:: - $(MKDIRHIER) $(BIN_DIST_DIR)/docs/$(XML_DOC) - $(CP) Makefile $(BIN_DIST_DIR)/docs/$(XML_DOC) + $(MKDIRHIER) $(BIN_DIST_DIR)/$(DOC_SUBDIR) + $(CP) Makefile $(BIN_DIST_DIR)/$(DOC_SUBDIR) ifneq "$(XMLDocWays)" "" # TODO: The following could be an entry for an Obfuscated Makefile Contest... @@ -295,13 +299,13 @@ binary-dist:: $(foreach i,$(XMLDocWays),$(INSTALL_XML_DOC)$(patsubst %.html-no-c binary-dist:: $(foreach i,$(XMLDocWays),binary-dist-docs-$i) binary-dist-docs-html: - $(CP) -r $(INSTALL_XML_DOC) $(BIN_DIST_DIR)/docs/$(XML_DOC)/ + $(CP) -r $(INSTALL_XML_DOC) $(BIN_DIST_DIR)/$(DOC_SUBDIR) binary-dist-docs-html-no-chunks: - $(CP) $(INSTALL_XML_DOC).html $(BIN_DIST_DIR)/docs/$(XML_DOC)/ + $(CP) $(INSTALL_XML_DOC).html $(BIN_DIST_DIR)/$(DOC_SUBDIR)/ binary-dist-docs-%: - $(CP) $(INSTALL_XML_DOC).$* $(BIN_DIST_DIR)/docs/$(XML_DOC)/ + $(CP) $(INSTALL_XML_DOC).$* $(BIN_DIST_DIR)/$(DOC_SUBDIR)/ endif endif |