From fd790cecd738a110347d2658a209f22690e0105f Mon Sep 17 00:00:00 2001 From: "sof@galois.com" Date: Fri, 17 Nov 2006 01:22:39 +0000 Subject: [PATCH] Emit .bat version of -inplace script on Windows platforms --- utils/ghc-pkg/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/ghc-pkg/Makefile b/utils/ghc-pkg/Makefile index 9ad63cb..f30b087 100644 --- a/utils/ghc-pkg/Makefile +++ b/utils/ghc-pkg/Makefile @@ -100,6 +100,14 @@ clean distclean maintainer-clean :: $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@ endif +ifeq "$(INSTALLING)$(HOSTPLATFORM)" "0i386-unknown-mingw32" +all :: $(INPLACE_SCRIPT_PROG).bat + +$(INPLACE_SCRIPT_PROG).bat : + echo '@call $(subst /,\\,$(FPTOOLS_TOP_ABS)/utils/ghc-pkg/$(HS_PROG)) --global-conf $(PKGCONF) %*' >> $@ + chmod 755 $@ +endif + # ghc-pkg is needed to boot in rts/ and library dirs # Do a recursive 'make all' after generating dependencies, because this # will work with 'make -j'. -- 1.7.10.4