diff options
-rwxr-xr-x | bin/umake | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,10 +2,10 @@ # Keep going up the tree until we find a Makefile, and then run make(1) with # any given args while [ "$PWD" != / ] ; do - if [ -f Makefile ] ; then - exec make "$@" || exit - fi + for mf in makefile Makefile ; do + [ -f "$mf" ] && exec make "$@" + done cd .. || exit done -printf >&2 'umake: No Makefile found in ancestors\n' +printf >&2 'umake: No makefile found in ancestors\n' exit 1 |