diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-09-24 23:28:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-09-24 23:28:00 -0700 |
commit | 0b876b42caf102c20d595b343ae60a71b9048eb9 (patch) | |
tree | ebbb3e8455049ea20fe92d5f083015a8f6d94a4e /Makefile | |
parent | 1d12e4169ffa4148ddaabc91e515850d341267ae (diff) | |
download | txr-0b876b42caf102c20d595b343ae60a71b9048eb9.tar.gz txr-0b876b42caf102c20d595b343ae60a71b9048eb9.tar.bz2 txr-0b876b42caf102c20d595b343ae60a71b9048eb9.zip |
configure: only detect lex in maintainer mode.
* Makefile (lex.yy.c): Move rule into maintainer conditional.
* configure: Describe maintainer variable in help text.
Move lex check into maintainer conditional.
* lex.yy.c.shipped: New file.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -259,6 +259,8 @@ $(eval $(foreach item,lex.yy.o txr.o match.o parser.o,\ $(eval $(foreach item,y.tab.c y.tab.h lex.yy.c,\ $(call DEP,$(item),config.make config.h))) +ifeq ($(maintainer),y) + lex.yy.c: $(top_srcdir)parser.l $(call ABBREV,LEX) $(call SH,rm -f $@) @@ -271,8 +273,6 @@ lex.yy.c: $(top_srcdir)parser.l fi) $(call SH,chmod a-w $@) -ifeq ($(maintainer),y) - y.tab.h: y.tab.c $(call SH, \ if ! [ -e y.tab.h ] ; then \ |