diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-09-24 23:10:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-09-24 23:10:51 -0700 |
commit | 1d12e4169ffa4148ddaabc91e515850d341267ae (patch) | |
tree | 96e3a339739bd8dbc1e877b8cef3cf2e430ca558 /Makefile | |
parent | b2c4389575185b5526370d3fb682c6ac06367b87 (diff) | |
download | txr-1d12e4169ffa4148ddaabc91e515850d341267ae.tar.gz txr-1d12e4169ffa4148ddaabc91e515850d341267ae.tar.bz2 txr-1d12e4169ffa4148ddaabc91e515850d341267ae.zip |
configure: detect yacc only in maintainer mode.
* Makefile (YACC_FLAGS): Removed. We don't need these because we
won't be trying to get newer Bison to behave like older Bison.
(y.tab.c): Drop reference to $(YACC_FLAGS).
* configure: Entire yacc-detecting section is conditional on
the maintainer Boolean variable. If the yacc program is
detected as Bison, check for version 2.5 and fail if not
found.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -93,12 +93,6 @@ OBJS := $(DBG_OBJS) $(OPT_OBJS) TXR := ./$(PROG) -ifneq ($(yacc_is_newer_bison),) -YACC_FLAGS := -Wno-yacc -Wno-deprecated -else -YACC_FLAGS := -endif - .SUFFIXES: MAKEFLAGS += --no-builtin-rules @@ -293,7 +287,7 @@ y.tab.c: $(top_srcdir)parser.y if [ -e y.tab.h ]; then mv y.tab.h y.tab.h.old ; fi) $(call SH,rm -f y.tab.c) $(call SH, \ - if $(TXR_YACC) $(YACC_FLAGS) -v -d $< ; then \ + if $(TXR_YACC) -v -d $< ; then \ chmod a-w y.tab.c ; \ if cmp -s y.tab.h y.tab.h.old ; then \ mv y.tab.h.old y.tab.h ; \ |