aboutsummaryrefslogblamecommitdiff
path: root/bin/umake.sh
blob: 210733289f32ab558e365336e274850f95bda85e (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                            


                                      

                 
                                                    
      
# Keep going up the tree until we find a Makefile, and then run make(1) with
# any given args
while [ "$PWD" != / ] ; do
    for mf in makefile Makefile ; do
        [ -f "$mf" ] && exec make "$@"
    done
    cd .. || exit
done
printf >&2 'umake: No makefile found in ancestors\n'
exit 1