fisher/functions/__fisher_path_make.fish
2016-02-20 09:57:51 +09:00

21 lines
310 B
Fish

function __fisher_path_make -a path
if test ! -s $path/Makefile -a ! -s $path/makefile
return
end
debug "Makefile '%s'" "$path/Makefile"
pushd $path
set -e argv[1]
if not make $argv
debug "Make fail '%s'" "$argv"
popd
return 1
end
popd
end