From dc91833b27db54a9d0629dd7c77a1b0e58864611 Mon Sep 17 00:00:00 2001 From: nuffer Date: Sat, 22 May 2004 04:26:02 +0000 Subject: [PATCH] Fixed problem of moving a file onto itself when bulding in the src dir. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 6fb66385..2b8e3cd2 100755 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ -- 2.50.1