mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Makefile: drop usage of 'which'
`which` is an external command which isn't required by POSIX. Debian and other distributions (like Gentoo!) are looking to drop it from their base set of packages. Switch to `command -v` which should always work instead. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
1 file changed
+2
-2
@@ -267,7 +267,7 @@ manhtml:
|
||||
|
||||
# Flex and Bison
|
||||
%.c: %.y
|
||||
@if ! which $(BISON) 2> /dev/null ; then \
|
||||
@if ! command -v $(BISON) 2> /dev/null ; then \
|
||||
echo "Please install $(BISON), then run \"make clean\" and try again" ; \
|
||||
false ; \
|
||||
fi
|
||||
@@ -280,7 +280,7 @@ FLEX_FLAGS := -Psensors_yy -t -Cfe -8
|
||||
endif
|
||||
|
||||
%.c: %.l
|
||||
@if ! which $(FLEX) 2> /dev/null ; then \
|
||||
@if ! command -v $(FLEX) 2> /dev/null ; then \
|
||||
echo "Please install $(FLEX), then run \"make clean\" and try again" ; \
|
||||
false ; \
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user