2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +00:00

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
This commit is contained in:
Mark M. Hoffman
2006-11-05 14:41:34 +00:00
parent 2fbcf30dc5
commit c9d758c669

View File

@@ -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) $< > $@