aboutsummaryrefslogblamecommitdiff
path: root/bin/umake
blob: 8c8d48508041fc73ab8875ee67868b55d1aa9e1b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                            
#!/bin/sh
# 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
    cd .. || exit
done
printf >&2 'umake: No Makefile found in ancestors\n'
exit 1