summaryrefslogtreecommitdiff
path: root/ghc/Makefile
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2008-07-23 14:32:01 +0000
committerSimon Marlow <marlowsd@gmail.com>2008-07-23 14:32:01 +0000
commit228c19b0e8a5af4baa51e720f23202422b22ad10 (patch)
tree0083e30570cd4c5b40585590187fc47e9381cebd /ghc/Makefile
parentd16f69bd77467961e80e27caff5c5bd686afa90b (diff)
downloadhaskell-228c19b0e8a5af4baa51e720f23202422b22ad10.tar.gz
add a "rebuild" target for convenience
Diffstat (limited to 'ghc/Makefile')
-rw-r--r--ghc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ghc/Makefile b/ghc/Makefile
index fba3e9f00e..806db1a0a7 100644
--- a/ghc/Makefile
+++ b/ghc/Makefile
@@ -17,6 +17,11 @@ boot:: boot.stage.$(stage)
all:: build.stage.$(stage)
+rebuild ::
+ -$(CABAL) clean --distpref dist-stage$(stage)
+ $(RM) -rf stage$(stage)-inplace
+ $(MAKE) boot all
+
stage1 ::
$(MAKE) stage=1