Merge pull request 'Makefile: drop usage of 'which'' (#402) from thesamesam/which-hunt into master

Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/402
This commit is contained in:
hramrach committed 2023-12-24 11:56:57 +01:00
commit 9bd98a6a5d
1 file changed
+2 -2
+2 -2
View File
@@ -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