summaryrefslogtreecommitdiff
path: root/compiler/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 /compiler/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 'compiler/Makefile')
-rw-r--r--compiler/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index 912d6cc43a..592498f5fa 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -71,6 +71,11 @@ else
clean distclean:: clean.stage.$(stage)
endif
+ifeq "$(CLEAN_ALL_STAGES)" "YES"
+distclean::
+ $(RM) -f ghc.cabal
+endif
+
clean.stage.%:
-$(CABAL) clean --distpref dist-stage$*
$(RM) -f Makefile-stage$*