projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f11c04
)
Emit .bat version of -inplace script on Windows platforms
author
sof@galois.com
<unknown>
Fri, 17 Nov 2006 01:22:39 +0000
(
01:22
+0000)
committer
sof@galois.com
<unknown>
Fri, 17 Nov 2006 01:22:39 +0000
(
01:22
+0000)
utils/ghc-pkg/Makefile
patch
|
blob
|
history
diff --git
a/utils/ghc-pkg/Makefile
b/utils/ghc-pkg/Makefile
index
9ad63cb
..
f30b087
100644
(file)
--- 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
$(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'.
# 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'.