stdenv: generic/setup.sh: simplify buildPhase Makefile check

This commit is contained in:
Jan Malakhovski 2018-03-15 00:00:01 +00:00
parent 7438083a4d
commit ad98c36f1b

View File

@ -968,7 +968,7 @@ buildPhase() {
# set to empty if unset
: ${makeFlags=}
if [[ -z "$makeFlags" && ! ( -n "${makefile:-}" || -e Makefile || -e makefile || -e GNUmakefile ) ]]; then
if [[ -z "$makeFlags" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then
echo "no Makefile, doing nothing"
else
# See https://github.com/NixOS/nixpkgs/pull/1354#issuecomment-31260409