don't forget to clean the .bat files
authorSimon Marlow <simonmar@microsoft.com>
Fri, 27 Apr 2007 12:12:03 +0000 (12:12 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 27 Apr 2007 12:12:03 +0000 (12:12 +0000)
See bug #1295

compiler/Makefile
utils/ghc-pkg/Makefile

index 9093d9a..19fba4e 100644 (file)
@@ -717,6 +717,7 @@ all :: $(odir)/ghc-inplace ghc-inplace
 
 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 all :: $(odir)/ghc-inplace.bat ghc-inplace.bat
+CLEAN_FILES += $(odir)/ghc-inplace.bat ghc-inplace.bat
 endif
 
 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
index 982c7a8..897bd73 100644 (file)
@@ -109,6 +109,8 @@ all :: $(INPLACE_SCRIPT_PROG).bat
 $(INPLACE_SCRIPT_PROG).bat :
        echo '@call $(subst /,\,$(FPTOOLS_TOP_ABS_PLATFORM)/utils/ghc-pkg/$(HS_PROG)) --global-conf $(PKGCONF) %*' >> $@
        chmod 755 $@
+
+CLEAN_FILES += $(INPLACE_SCRIPT_PROG).bat
 endif
 
 # ghc-pkg is needed to boot in rts/ and library dirs