mirror of
https://github.com/hectorm/hblock.git
synced 2026-04-20 14:06:35 +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}
|
FLAGS := ${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
|
||||||
|
|
||||||
all: .DEFAULT
|
all: .DEFAULT
|
||||||
|
|
||||||
.DEFAULT:
|
.DEFAULT:
|
||||||
@which gmake >/dev/null 2>&1 || \
|
@command -v gmake >/dev/null 2>&1 || \
|
||||||
(printf '%s\n' \
|
{ printf '%s\n' \
|
||||||
"GMake is required to build hBlock." \
|
"GMake is required to build hBlock." \
|
||||||
"Install it and try again." \
|
"Install it and try again." >&2 \
|
||||||
&& exit 1)
|
&& exit 1; }
|
||||||
@gmake ${.FLAGS} ${.TARGETS}
|
@gmake ${.FLAGS} ${.TARGETS}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue