diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-10-21 14:39:12 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-10-21 14:39:12 +1300 |
commit | 0a960878d6ee48491c368f78851f3d27e30a984c (patch) | |
tree | 787ec37f92fd4f711a082ba7f49d96edbd6377fb | |
parent | Observe POSIX spec for looking for Makefile name (diff) | |
download | dotfiles-0a960878d6ee48491c368f78851f3d27e30a984c.tar.gz dotfiles-0a960878d6ee48491c368f78851f3d27e30a984c.zip |
Have umake(1df) observe POSIX makefile filenames
-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 |