X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2FMakefile-bin.in;h=f4497da52ee7651d974bf8e5200051593a01da86;hb=bc0eeca8c0e49ff50d5a2d154e486009aae97187;hp=4372ea92c7e6505c713f7cd0b18f2bbe31aa863c;hpb=7b556b76b3cb427dc4236e6f4a12f3ffc48c6d6a;p=ghc-hetmet.git diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 4372ea9..f4497da 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -166,10 +166,17 @@ config-pkgs :: echo "Done."; \ fi; \ done + @for i in $(PACKAGE_LIB_SPLICED_FILES) ""; do \ + if test "$$i"; then \ + echo "Creating a configured version of $$i .."; \ + if [ -f lib/$(platform)/$$i ]; then $(MV) lib/$(platform)/$$i lib/$(platform)/$$i.bak; fi; \ + $(SED) -e "s|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g" lib/$(platform)/$$i; \ + fi; \ + done in-place :: $(MAKE) $(MFLAGS) config-pkgs bindir=`pwd`/bin/$(platform) libdir=`pwd`/lib/$(platform) datadir=`pwd`/share - if test -x "./post-inplace-script" ; then \ + @if test -x "./post-inplace-script" ; then \ echo "Running project-specific post-inplace script ..." ; \ ./post-inplace-script $(platform) `pwd` \ $(package)-$(version); \ @@ -216,6 +223,9 @@ install-bin: for i in $(PACKAGE_BINS) ""; do \ if test -n "$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ done; + for i in $(PACKAGE_OPT_BINS) ""; do \ + if test -n "$$i" -a ! -e "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ + done; @for i in $(VERSION_SYMLINKS_FOR) ""; do \ if [ "x$$i" != "x" ]; then \ ( cd $(bindir); \