]> granicus.if.org Git - re2c/commitdiff
- Copy y.tab.h to bootstrap dir if modified
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 31 Dec 2005 01:08:50 +0000 (01:08 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 31 Dec 2005 01:08:50 +0000 (01:08 +0000)
Makefile.am

index af02a7c4597c56c8af249ef3bd71efbbff321c92..70e0da4f09ae3688d50e4f9082605c91d3cdf7d1 100755 (executable)
@@ -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 \