X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2FMakefile-bin.in;h=747a2fd27d001a1b0c5a9e1ef13673efd846c9bb;hb=08a58bedccd06f08617836fd1d9214f9119d86c4;hp=0c7f1b61e9d814580e977796d4e227567b8ffb10;hpb=54cf53b0895e140d73a684e8cf56a1719a499367;p=ghc-hetmet.git diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 0c7f1b6..747a2fd 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -177,6 +177,12 @@ CURRENT_DIR = $(shell pwd | sed 's|^//\(.\)|\1:|' ) in-place :: $(MAKE) $(MFLAGS) config-pkgs bindir=$(CURRENT_DIR)/bin/$(platform) libdir=$(CURRENT_DIR)/lib/$(platform) datadir=$(CURRENT_DIR)/share + if test -x "./post-inplace-script" ; then \ + echo "Running project-specific post-inplace script ..." ; \ + ./post-inplace-script $(platform) $(CURRENT_DIR) \ + $(package)-$(version); \ + echo "Done" ; \ + fi @echo "Finished configuring..to use, add $(CURRENT_DIR)/bin/$(platform) to your PATH." install-dirs :: @@ -189,9 +195,9 @@ install :: config-pkgs install-dirs install-bin install-libs install-datas posti .PHONY: install-bin install-libs install-datas postinstall postinstall: - if test -x "bin/$(platform)/post-install-script" ; then \ + if test -x "./post-install-script" ; then \ echo "Running project-specific post-install script ..." ; \ - bin/$(platform)/post-install-script $(platform) $(prefix) \ + ./post-install-script $(platform) $(prefix) \ $(package)-$(version); \ echo "Done" ; \ fi