* Allow "make install" to be overriden using $installCommand.

svn path=/nixpkgs/trunk/; revision=7340
This commit is contained in:
Eelco Dolstra 2006-12-13 20:08:24 +00:00
parent e6f589d4bf
commit 0a91ca3091

View file

@ -629,10 +629,14 @@ installW() {
eval "$preInstall"
ensureDir "$prefix"
if test -z "$dontMakeInstall"; then
echo "install flags: $installFlags ${installFlagsArray[@]}"
make install $installFlags "${installFlagsArray[@]}" || fail
if test -z "$installCommand"; then
if test -z "$dontMakeInstall"; then
echo "install flags: $installFlags ${installFlagsArray[@]}"
make install $installFlags "${installFlagsArray[@]}" || fail
fi
else
eval "$installCommand"
fi
if test -z "$dontStrip" -a "$NIX_STRIP_DEBUG" = 1; then