From c288f034a1e3c682a2d47ad7f68bb54f5443a18d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 19 Oct 2010 18:34:34 +0000 Subject: [PATCH] Warn the user is either flex or bison is missing. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5869 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + Makefile | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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) $< > $@