X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FMakefile;h=9b24c78411eb74c6e49310bfa1a93ad0d9a2b5d7;hp=536ed0f85672cf9d70338b772259f773070ced41;hb=4a88ae96833c8f7b18de46c29e805bb53f8b5669;hpb=07ea55410545ef68074e7ae94516e93bd88e26bb diff --git a/compiler/Makefile b/compiler/Makefile index 536ed0f..9b24c78 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -706,10 +706,15 @@ all :: $(odir)/ghc-inplace ghc-inplace INPLACE_HS = $(odir)/ghc-inplace.hs INPLACE_PROG = $(odir)/ghc-inplace$(exeext) +EXCLUDED_SRCS += $(INPLACE_HS) + +# FPTOOLS_TOP_ABS platform uses backslashes, at least on Cygwin, but that +# will go wrong when we use it in a Haskell string below. +TOP_ABS=$(subst \\,/,$(FPTOOLS_TOP_ABS_PLATFORM)) $(INPLACE_HS): Makefile $(FPTOOLS_TOP)/mk/config.mk echo "import System.Cmd; import System.Environment" > $@ - echo "main = getArgs >>= \args -> rawSystem \"$(FPTOOLS_TOP_ABS_PLATFORM)/$(GHC_COMPILER_DIR_REL)/$(GHC_PROG)\" (\"-B$(FPTOOLS_TOP_ABS_PLATFORM)\":args)" >> $@ + echo "main = getArgs >>= \args -> rawSystem \"$(TOP_ABS)/$(GHC_COMPILER_DIR_REL)/$(GHC_PROG)\" (\"-B$(TOP_ABS)\":args)" >> $@ $(INPLACE_PROG): $(INPLACE_HS) $(GHC) --make $< -o $@