]> granicus.if.org Git - re2c/commitdiff
Fixed problem of moving a file onto itself when bulding in the src dir.
authornuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 22 May 2004 04:26:02 +0000 (04:26 +0000)
committernuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 22 May 2004 04:26:02 +0000 (04:26 +0000)
Makefile.am

index 6fb6638532e268087bbd6c9d75045e455e682882..2b8e3cd23e6f819c739ed95aef7011ad197fd854 100755 (executable)
@@ -32,7 +32,7 @@ rpm-files:    $(bin_PROGRAMS) $(EXTRA_DIST)
 parser.cc:     $(top_srcdir)/parser.y
        $(YACC) $(YFLAGS) $(top_srcdir)/parser.y
        mv -f y.tab.c $(top_srcdir)/parser.cc
-       mv -f y.tab.h $(top_srcdir)/y.tab.h
+       if cmp -s y.tab.h $(top_srcdir)/y.tab.h; then :; else mv -f y.tab.h $(top_srcdir)/y.tab.h; fi
 
 scanner.cc: $(top_srcdir)/scanner.re
        @if test -x ./re2c$(EXEEXT); then \