X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=ghc%2FMakefile;fp=ghc%2FMakefile;h=c0664df5fd9fda6a5ee695ba77fd82e8b622ec6e;hp=048b3a59b760aca6126ced3c788ff7003f285dcc;hb=51d7126ec1ac139e583af6375cde09acb8ddfed4;hpb=36cc8411d5d13cf52b478ca92213190a84d6561f diff --git a/ghc/Makefile b/ghc/Makefile index 048b3a5..c0664df 100644 --- a/ghc/Makefile +++ b/ghc/Makefile @@ -34,12 +34,18 @@ stage2 :: stage3 :: $(MAKE) stage=3 + ifeq "$(CLEAN_ALL_STAGES)" "YES" clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3 else clean distclean:: clean.stage.$(stage) endif +ifeq "$(CLEAN_ALL_STAGES)" "YES" +distclean:: + $(RM) -f ghc-bin.cabal +endif + clean.stage.%: -$(CABAL) clean --distpref dist-stage$* $(RM) -rf stage$*-inplace