diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2014-03-02 Kaz Kylheku <kaz@kylheku.com> + * Makefile (lex.yy.c): Remove lex.yy.c before trying to regenerate it. + (y.tab.c, y.tab.h): Remove y.tab.c before running yacc. Write-protect + y.tab.c, not $@, which could expand to the y.tab.h target if that is + what triggered the rule. + +2014-03-02 Kaz Kylheku <kaz@kylheku.com> + * txr.1: Incorporating more corrections from Roman Mishin. 2014-03-02 Kaz Kylheku <kaz@kylheku.com> @@ -61,11 +61,13 @@ VPATH := $(top_srcdir) -include $(top_srcdir)/dep.mk lex.yy.c: parser.l + rm -f $@ $(LEX) $(LEX_DBG_FLAGS) $< chmod a-w $@ y.tab.c y.tab.h: parser.y - if $(YACC) -v -d $< ; then chmod a-w $@ ; true ; else rm $@ ; false ; fi + rm -f y.tab.c + if $(YACC) -v -d $< ; then chmod a-w y.tab.c ; true ; else rm y.tab.c ; false ; fi # Suppress useless sccs id array and unused label warning in byacc otuput. # Bison-generated parser also tests for this lint define. |