@echo "Generating a shippable configure script.."
$(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure-bin.in $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure.in
( cd $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); autoconf )
-
+ cp $(BIN_DIST_MAIN_DIR)/mk/post-install-script $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)
#
# binary dist'ing the documentation.
# Which documentation to build/install is hardcoded below.
.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
#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.60 2001/04/03 11:31:39 sewardj Exp $
+# $Id: Makefile,v 1.61 2001/04/03 13:18:35 sewardj Exp $
#
TOP=..
override datadir = $(libdir)
INSTALL_DATAS += package.conf ghc-usage.txt
-INSTALL_PROGS += pkgconf post-install-script
+
+ifeq "$(BIN_DIST)" "1"
+INSTALL_PROGS += pkgconf
+endif
CLEAN_FILES += pkgconf package.conf.inplace package.conf
--- /dev/null
+#!/bin/sh
+
+# $1 is $(platform)
+# $2 is root of final installation tree
+# $3 is $(package)-$(version) ie ghc-4.11
+
+###echo POST_INSTALL_SCRIPT $1 $2 $3
+
+bin/$1/pkgconf install "$1" "" "YES" "" "$2/lib/$3" "$2/lib/$3" "$2/lib/$3" "" "$2/lib/$3/include" "" > $2/lib/$3/package.conf