Skip to content

Commit

Permalink
Sniff for the MAKE env properly
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 10, 2011
1 parent 22b39cf commit b313d86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ fi
# otherwise, try to find gmake, and then make.
# If no make is found, then just execute the necessary commands.
if [ "x$MAKE" = "x" ]; then
make="$MAKE"
else
make=`which gmake 2>&1`
if [ $? -eq 0 ] && [ -x $make ]; then
(exit 0)
Expand All @@ -101,8 +99,11 @@ else
make=NOMAKE
fi
fi
else
make="$MAKE"
fi
if [ -x $make ]; then

if [ -x "$make" ]; then
(exit 0)
else
echo "Installing without make. This may fail." >&2
Expand Down Expand Up @@ -196,7 +197,7 @@ cd "$TMP" \
fi) \
&& (if [ "$make" = "NOMAKE" ]; then
(exit 0)
elif $make clean install; then
elif "$make" clean install; then
(exit 0)
else
make="NOMAKE"
Expand Down

0 comments on commit b313d86

Please sign in to comment.