aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/umake8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/umake b/bin/umake
index 8c8d4850..e8de7ae6 100755
--- a/bin/umake
+++ b/bin/umake
@@ -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