From c9d758c669e8fe959b517f988223885d53d5704e Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Sun, 5 Nov 2006 14:41:34 +0000 Subject: [PATCH] Don't create lex.backup unless DEBUG is enabled. Also, delete it during 'make clean'. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4228 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae902fe6..a7c6642f 100644 --- a/Makefile +++ b/Makefile @@ -336,7 +336,7 @@ else endif clean:: - $(RM) lm_sensors-* + $(RM) lm_sensors-* lex.backup user_uninstall:: @@ -476,5 +476,11 @@ manhtml: %c: %y $(BISON) -p sensors_yy -d $< -o $@ +ifeq ($(DEBUG),1) +FLEX_FLAGS := -Psensors_yy -t -b -Cf +else +FLEX_FLAGS := -Psensors_yy -t -Cf +endif + %.c: %.l - $(FLEX) -Psensors_yy -t -b -Cf $< > $@ + $(FLEX) $(FLEX_FLAGS) $< > $@