mirror of
https://github.com/hectorm/hblock.git
synced 2026-04-18 04:56:31 +05:30
Prefer "command -v" over "which"
This commit is contained in:
parent
6dab497ddb
commit
1ac71e150a
1 changed files with 5 additions and 4 deletions
|
|
@ -6,10 +6,11 @@ SHELL := /bin/sh
|
|||
FLAGS := ${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
|
||||
|
||||
all: .DEFAULT
|
||||
|
||||
.DEFAULT:
|
||||
@which gmake >/dev/null 2>&1 || \
|
||||
(printf '%s\n' \
|
||||
@command -v gmake >/dev/null 2>&1 || \
|
||||
{ printf '%s\n' \
|
||||
"GMake is required to build hBlock." \
|
||||
"Install it and try again." \
|
||||
&& exit 1)
|
||||
"Install it and try again." >&2 \
|
||||
&& exit 1; }
|
||||
@gmake ${.FLAGS} ${.TARGETS}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue