diff options
author | sof@galois.com <unknown> | 2006-11-17 01:22:39 +0000 |
---|---|---|
committer | sof@galois.com <unknown> | 2006-11-17 01:22:39 +0000 |
commit | fd790cecd738a110347d2658a209f22690e0105f (patch) | |
tree | 1d94d519f7b561e3077ff855e2a31c75402e8a60 /utils | |
parent | 3f11c04f216c789bbe7fd795ff1651b8d5552552 (diff) | |
download | haskell-fd790cecd738a110347d2658a209f22690e0105f.tar.gz |
Emit .bat version of -inplace script on Windows platforms
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-pkg/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/ghc-pkg/Makefile b/utils/ghc-pkg/Makefile index 9ad63cb26f..f30b08772b 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'. |