add a "rebuild" target for convenience
[ghc-hetmet.git] / 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