summaryrefslogtreecommitdiff
path: root/utils/ghc-cabal/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-03 20:20:06 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-03 20:20:06 +0000
commit480ad0369c51879060f56fe77003e10e4da6b141 (patch)
treed3e2d1a2405e07fdfa9babd6b7dc3c7c205685c4 /utils/ghc-cabal/ghc.mk
parent1da6975add0b333027f2b643933a4b60f0f66095 (diff)
downloadhaskell-480ad0369c51879060f56fe77003e10e4da6b141.tar.gz
Use more of the automatically generated INPLACE variables
Diffstat (limited to 'utils/ghc-cabal/ghc.mk')
-rw-r--r--utils/ghc-cabal/ghc.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk
index c72f1a1a31..db125986b7 100644
--- a/utils/ghc-cabal/ghc.mk
+++ b/utils/ghc-cabal/ghc.mk
@@ -18,7 +18,9 @@ CABAL_DOTTED_VERSION := $(shell grep "^Version:" libraries/Cabal/Cabal/Cabal.cab
CABAL_VERSION := $(subst .,$(comma),$(CABAL_DOTTED_VERSION))
CABAL_CONSTRAINT := --constraint="Cabal == $(CABAL_DOTTED_VERSION)"
-$(GHC_CABAL_INPLACE) : utils/ghc-cabal/dist/build/tmp/ghc-cabal$(exeext) | $$(dir $$@)/.
+ghc-cabal_INPLACE = inplace/bin/ghc-cabal$(exeext)
+
+$(ghc-cabal_INPLACE) : utils/ghc-cabal/dist/build/tmp/ghc-cabal$(exeext) | $$(dir $$@)/.
"$(CP)" $< $@
utils/ghc-cabal/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/Cabal/Distribution/*/*/*.hs)
@@ -45,7 +47,7 @@ utils/ghc-cabal/dist/build/tmp/ghc-cabal$(exeext): utils/ghc-cabal/Main.hs $(TOU
$(eval $(call clean-target,utils/ghc-cabal,dist,\
utils/ghc-cabal/dist bootstrapping))
-$(eval $(call all-target,utils/ghc-cabal,$(GHC_CABAL_INPLACE)))
+$(eval $(call all-target,utils/ghc-cabal,$(ghc-cabal_INPLACE)))
# -----------------------------------------------------------------------------
# Now make another copy that goes in bindists. This needs to be built