From: sof@galois.com Date: Fri, 17 Nov 2006 01:22:39 +0000 (+0000) Subject: Emit .bat version of -inplace script on Windows platforms X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=fd790cecd738a110347d2658a209f22690e0105f Emit .bat version of -inplace script on Windows platforms --- 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'.