summaryrefslogtreecommitdiff
path: root/ghc/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-18 13:36:36 +0000
committerIan Lynagh <igloo@earth.li>2008-09-18 13:36:36 +0000
commit51d7126ec1ac139e583af6375cde09acb8ddfed4 (patch)
treef9eefb33c242a19a60a51d30f57bf1ef0a25d3ce /ghc/Makefile
parent36cc8411d5d13cf52b478ca92213190a84d6561f (diff)
downloadhaskell-51d7126ec1ac139e583af6375cde09acb8ddfed4.tar.gz
Generate ghc.cabal and ghc-bin.cabal with configure
This allows us to put the proper version number into them
Diffstat (limited to 'ghc/Makefile')
-rw-r--r--ghc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/ghc/Makefile b/ghc/Makefile
index 048b3a59b7..c0664df5fd 100644
--- a/ghc/Makefile
+++ b/ghc/Makefile
@@ -34,12 +34,18 @@ stage2 ::
stage3 ::
$(MAKE) stage=3
+
ifeq "$(CLEAN_ALL_STAGES)" "YES"
clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3
else
clean distclean:: clean.stage.$(stage)
endif
+ifeq "$(CLEAN_ALL_STAGES)" "YES"
+distclean::
+ $(RM) -f ghc-bin.cabal
+endif
+
clean.stage.%:
-$(CABAL) clean --distpref dist-stage$*
$(RM) -rf stage$*-inplace