1
1
Fork 0

make.fish: Use bmake for pkgsrc only if available

This commit is contained in:
Jonathan Schleifer 2020-02-08 14:27:42 +00:00
parent 12d321571a
commit 68184ab397

View file

@ -1,11 +1,15 @@
# Automatically use bmake instead of make when using pkgsrc
# Automatically use bmake instead of make when using pkgsrc, if necessary
function make
if which bmake >/dev/null ^&1 && \
string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
# pkgsrc does not like MAKEFLAGS including -j
set -lx MAKEFLAGS
if which bmake >/dev/null ^&1 && \
command bmake $argv
else
command make $argv
end
else
command make $argv
end
end