diff --git a/CHANGES b/CHANGES index 311a68e4..ff2e9346 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ lm-sensors CHANGES file ----------------------- SVN HEAD + Makefile: Check for bison and flex sensors-detect: Improve LM90 and W83L771 detection 3.2.0 (2010-10-10) diff --git a/Makefile b/Makefile index ddd238cf..827dfe0e 100644 --- a/Makefile +++ b/Makefile @@ -266,7 +266,11 @@ manhtml: # Flex and Bison -%c: %y +%.c: %.y + @if ! which $(BISON) 2> /dev/null ; then \ + echo "Please install $(BISON), then run \"make clean\" and try again" ; \ + false ; \ + fi $(BISON) -p sensors_yy -d $< -o $@ ifeq ($(DEBUG),1) @@ -276,4 +280,8 @@ FLEX_FLAGS := -Psensors_yy -t -Cfe -8 endif %.c: %.l + @if ! which $(FLEX) 2> /dev/null ; then \ + echo "Please install $(FLEX), then run \"make clean\" and try again" ; \ + false ; \ + fi $(FLEX) $(FLEX_FLAGS) $< > $@