summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-09-24 23:28:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-09-24 23:28:00 -0700
commit0b876b42caf102c20d595b343ae60a71b9048eb9 (patch)
treeebbb3e8455049ea20fe92d5f083015a8f6d94a4e /Makefile
parent1d12e4169ffa4148ddaabc91e515850d341267ae (diff)
downloadtxr-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--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 18d9d621..53114b38 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \