1
1
Fork 0

fish: Allow using make instead of bmake for pkgsrc

This commit is contained in:
Jonathan Schleifer 2020-01-22 00:32:30 +00:00
parent 300eab47a3
commit 0647f973ac
2 changed files with 9 additions and 8 deletions

View file

@ -1,8 +0,0 @@
# pkgsrc does not like MAKEFLAGS being set
function bmake
if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
env MAKEFLAGS= bmake $argv
else
command bmake $argv
end
end

View file

@ -0,0 +1,9 @@
# Automatically use bmake instead of make when using pkgsrc
function make
if which bmake >/dev/null && string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
# pkgsrc does not like MAKEFLAGS including -j
env MAKEFLAGS= bmake $argv
else
command make $argv
end
end