aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-10-21 14:39:12 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-10-21 14:39:12 +1300
commit0a960878d6ee48491c368f78851f3d27e30a984c (patch)
tree787ec37f92fd4f711a082ba7f49d96edbd6377fb /bin
parentObserve POSIX spec for looking for Makefile name (diff)
downloaddotfiles-0a960878d6ee48491c368f78851f3d27e30a984c.tar.gz
dotfiles-0a960878d6ee48491c368f78851f3d27e30a984c.zip
Have umake(1df) observe POSIX makefile filenames
Diffstat (limited to 'bin')
-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