make.fish: Use bmake for pkgsrc only if available
This commit is contained in:
parent
12d321571a
commit
68184ab397
1 changed files with 8 additions and 4 deletions
|
@ -1,10 +1,14 @@
|
||||||
# Automatically use bmake instead of make when using pkgsrc
|
# Automatically use bmake instead of make when using pkgsrc, if necessary
|
||||||
function make
|
function make
|
||||||
if which bmake >/dev/null ^&1 && \
|
if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
|
||||||
string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
|
|
||||||
# pkgsrc does not like MAKEFLAGS including -j
|
# pkgsrc does not like MAKEFLAGS including -j
|
||||||
set -lx MAKEFLAGS
|
set -lx MAKEFLAGS
|
||||||
command bmake $argv
|
|
||||||
|
if which bmake >/dev/null ^&1 && \
|
||||||
|
command bmake $argv
|
||||||
|
else
|
||||||
|
command make $argv
|
||||||
|
end
|
||||||
else
|
else
|
||||||
command make $argv
|
command make $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue