https://github.com/lm-sensors/lm-sensors/pull/402 --- a/Makefile +++ b/Makefile @@ -250,7 +250,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 @@ -263,7 +263,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