X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FMakefile;h=69b290340c55ea1eaed97412a6032327a1173123;hp=592498f5fa3d3f7658a3b4db16603ca18cd1a94c;hb=894775f034d278ff5493eeaf8587914626e8df21;hpb=51d7126ec1ac139e583af6375cde09acb8ddfed4 diff --git a/compiler/Makefile b/compiler/Makefile index 592498f..69b2903 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -77,8 +77,12 @@ distclean:: endif clean.stage.%: - -$(CABAL) clean --distpref dist-stage$* $(RM) -f Makefile-stage$* +# This is a bit naughty. We ought to use: +# -$(CABAL) clean --distpref dist-stage$* +# but that won't work if the Cabal file (a generated file) doesn't +# exist. So we do this instead: + $(RM) -rf dist-stage$* CONFIGURE_FLAGS_STAGE1 += --flags=stage1 CONFIGURE_FLAGS_STAGE2 += --flags=-stage1