fix creation of ghc-inplace for non-std ways
authorSimon Marlow <simonmar@microsoft.com>
Wed, 17 Oct 2007 15:28:20 +0000 (15:28 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 17 Oct 2007 15:28:20 +0000 (15:28 +0000)
compiler/Makefile

index e19e560..be09d35 100644 (file)
@@ -754,11 +754,9 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
 INPLACE_EXTRA_FLAGS = -optc-DWINDOWS
 endif
 
-$(INPLACE_SRC): ghc-inplace.c
-       $(SED) -e "s@GHC_PATH@$(GHC_PATH)@g" -e "s@TOP_ABS@$(FPTOOLS_TOP_ABS)@g" < $< > $@
-
-$(INPLACE_PROG): $(INPLACE_SRC)
-       $(HC) -cpp $(INPLACE_EXTRA_FLAGS) $< -o $@
+$(INPLACE_PROG): ghc-inplace.c
+       $(SED) -e "s@GHC_PATH@$(GHC_PATH)@g" -e "s@TOP_ABS@$(FPTOOLS_TOP_ABS)@g" < $< > $(INPLACE_SRC)
+       $(HC) -cpp $(INPLACE_EXTRA_FLAGS) $(INPLACE_SRC) -o $@
 
 all :: $(INPLACE_PROG)