From: helly Date: Sat, 31 Dec 2005 01:08:50 +0000 (+0000) Subject: - Copy y.tab.h to bootstrap dir if modified X-Git-Tag: 0.13.6~530 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0694f312bd0cbca23be4416dba99bb619098fb4;p=re2c - Copy y.tab.h to bootstrap dir if modified --- diff --git a/Makefile.am b/Makefile.am index af02a7c4..70e0da4f 100755 --- a/Makefile.am +++ b/Makefile.am @@ -41,6 +41,7 @@ parser.cc: $(top_srcdir)/parser.y rm -f y.tab.c if cmp -s $(top_srcdir)/parser.cc $(top_srcdir)/bootstrap/parser.cc; then :; else cp -f $(top_srcdir)/parser.cc $(top_srcdir)/bootstrap/parser.cc; fi if cmp -s y.tab.h $(top_srcdir)/y.tab.h; then :; else mv -f y.tab.h $(top_srcdir)/y.tab.h; fi + if cmp -s $(top_srcdir)/y.tab.h $(top_srcdir)/bootstrap/y.tab.h; then :; else cp -f $(top_srcdir)/y.tab.h $(top_srcdir)/bootstrap/y.tab.h; fi scanner.cc: $(top_srcdir)/scanner.re @if test -x ./re2c$(EXEEXT); then \