configs  Check-in [9ed4fcd17e]

Overview
Comment:make.fish: Use bmake for pkgsrc only if available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9ed4fcd17ec648b46c75441988ba0ce88c8e877f4481b7de6d86d7bc91d84342
User & Date: js on 2020-02-08 14:27:42
Other Links: manifest | tags
Context
2020-02-08
18:07
fish: Add gpg-ssh commands check-in: 99fc4ada89 user: js tags: trunk
14:27
make.fish: Use bmake for pkgsrc only if available check-in: 9ed4fcd17e user: js tags: trunk
2020-02-02
21:18
fish: Slight improvement of prompt check-in: 6fc784e055 user: js tags: trunk
Changes

Modified config/fish/functions/make.fish from [3fa00d1f43] to [185d351193].

1
2
3
4
5
6


7



8
9
10
11
# Automatically use bmake instead of make when using pkgsrc
function make
	if which bmake >/dev/null ^&1 && \
	    string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
		# pkgsrc does not like MAKEFLAGS including -j
		set -lx MAKEFLAGS


		command bmake $argv



	else
		command make $argv
	end
end
|

<
|


>
>
|
>
>
>




1
2

3
4
5
6
7
8
9
10
11
12
13
14
15
# Automatically use bmake instead of make when using pkgsrc, if necessary
function make

	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