summaryrefslogtreecommitdiff
path: root/ghc/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-18 13:44:43 +0000
committerIan Lynagh <igloo@earth.li>2008-09-18 13:44:43 +0000
commit894775f034d278ff5493eeaf8587914626e8df21 (patch)
treef4d0864d3676e0199945fd8a369e59eec95fa9fe /ghc/Makefile
parent51d7126ec1ac139e583af6375cde09acb8ddfed4 (diff)
downloadhaskell-894775f034d278ff5493eeaf8587914626e8df21.tar.gz
Be more forceful when cleaning in compiler/ and ghc/
Now that the Cabal file is generated by configure, it would be nice if clean worked even if the cabal file is missing. So now we just rm -rf the dist directory.
Diffstat (limited to 'ghc/Makefile')
-rw-r--r--ghc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/ghc/Makefile b/ghc/Makefile
index c0664df5fd..23a5384d58 100644
--- a/ghc/Makefile
+++ b/ghc/Makefile
@@ -47,8 +47,12 @@ distclean::
endif
clean.stage.%:
- -$(CABAL) clean --distpref dist-stage$*
$(RM) -rf stage$*-inplace
+# This is a bit naughty. We ought to use:
+# -$(CABAL) clean --distpref dist-stage$*
+# but that won't work if the Cabal file (a generated file) doesn't
+# exist. So we do this instead:
+ $(RM) -rf dist-stage$*
CONFIGURE_FLAGS_STAGE1 += --flags=-ghci