Commit 0147f8cc authored by sewardj's avatar sewardj

[project @ 2001-04-03 15:08:35 by sewardj]

Fix up make-inplace for binary distribs.
parent 8eda4709
......@@ -155,7 +155,14 @@ binary-dist::
@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)
if test -x $(BIN_DIST_MAIN_DIR)/mk/post-install-script ; then \
cp $(BIN_DIST_MAIN_DIR)/mk/post-install-script \
$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) ; \
fi
if test -x $(BIN_DIST_MAIN_DIR)/mk/post-inplace-script ; then \
cp $(BIN_DIST_MAIN_DIR)/mk/post-inplace-script \
$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) ; \
fi
#
# binary dist'ing the documentation.
# Which documentation to build/install is hardcoded below.
......
......@@ -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 ::
......
#!/bin/sh
# $1 is $(platform)
# $2 is root of the unpacked tarfile tree
# $3 is $(package)-$(version) ie ghc-4.11
echo POST_INPLACE_SCRIPT $1 $2 $3
bin/$1/pkgconf install "$1" "" "YES" "" "$2/lib/$1" "$2/lib/$1" "$2/lib/$1" "" "$2/lib/$1/include" "" > $2/lib/$1/package.conf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment