don't clean ghc-inplace when cleaning stages other than 1
authorSimon Marlow <simonmar@microsoft.com>
Thu, 2 Feb 2006 12:43:59 +0000 (12:43 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 2 Feb 2006 12:43:59 +0000 (12:43 +0000)
ghc/compiler/Makefile

index 7298560..0c877ce 100644 (file)
@@ -680,7 +680,11 @@ $(odir)/ghc-inplace : $(HS_PROG)
 ghc-inplace : stage1/ghc-inplace
        $(LN_S) -f $< $@
 
-CLEAN_FILES += $(odir)/ghc-inplace ghc-inplace
+ifeq "$(stage)" "1"
+CLEAN_FILES += ghc-inplace
+endif
+
+CLEAN_FILES += $(odir)/ghc-inplace
 
 #-----------------------------------------------------------------------------
 #              install