Generate ghc.cabal and ghc-bin.cabal with configure
[ghc-hetmet.git] / ghc / Makefile
index 048b3a5..c0664df 100644 (file)
@@ -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