[project @ 2001-04-05 14:45:29 by sewardj]
[ghc-hetmet.git] / distrib / Makefile-bin.in
index 0c7f1b6..747a2fd 100644 (file)
@@ -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