From: simonmar Date: Mon, 18 Nov 2002 10:45:45 +0000 (+0000) Subject: [project @ 2002-11-18 10:45:45 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1445 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9c7f3c9fbe8bd63c8802a87ef8ac0285434dc807;p=ghc-hetmet.git [project @ 2002-11-18 10:45:45 by simonmar] Don't install HS_PROG in $libexecdir as well as $bindir on Win32. --- diff --git a/ghc/utils/ghc-pkg/Makefile b/ghc/utils/ghc-pkg/Makefile index 5aa7837..13b02be 100644 --- a/ghc/utils/ghc-pkg/Makefile +++ b/ghc/utils/ghc-pkg/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.20 2002/10/29 04:00:59 mthomas Exp $ +# $Id: Makefile,v 1.21 2002/11/18 10:45:45 simonmar Exp $ TOP=../.. include $(TOP)/mk/boilerplate.mk @@ -18,12 +18,16 @@ ifeq "$(ghc_ge_504)" "NO" SRC_HC_OPTS += -package lang -package util -package text endif -HS_PROG = ghc-pkg.bin -INSTALL_LIBEXECS += $(HS_PROG) - +# On Windows, ghc-pkg is a standalone program +# ($bindir/ghc-pkg.exe), whereas on Unix it needs a wrapper script +# to pass the appropriate flag to the real binary +# ($libexecdir/ghc-pkg.bin) so that it can find package.conf. ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" HS_PROG = ghc-pkg.exe INSTALL_PROGS += $(HS_PROG) +else +HS_PROG = ghc-pkg.bin +INSTALL_LIBEXECS += $(HS_PROG) endif # -----------------------------------------------------------------------------