add a "rebuild" target for convenience
authorSimon Marlow <marlowsd@gmail.com>
Wed, 23 Jul 2008 14:32:01 +0000 (14:32 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 23 Jul 2008 14:32:01 +0000 (14:32 +0000)
ghc/Makefile

index fba3e9f..806db1a 100644 (file)
@@ -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