]> granicus.if.org Git - sudo/commitdiff
When regenerating the parser, don't replace gram.h unless it has changed.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 17 Nov 2004 18:19:45 +0000 (18:19 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 17 Nov 2004 18:19:45 +0000 (18:19 +0000)
Makefile.in

index 3282ac09e2f5bf1ebaaeea6682eb533c57356222..23cc5e71e669c7f827c416a97eb26aad95bf9f77 100644 (file)
@@ -191,7 +191,7 @@ sudo_noexec.la: sudo_noexec.lo
 gram.c gram.h: gram.y
 @DEV@  $(YACC) -d $(srcdir)/gram.y
 @DEV@  mv -f y.tab.c gram.c
-@DEV@  mv -f y.tab.h gram.h
+@DEV@  if cmp -s y.tab.h gram.h; then rm -f y.tab.h; else mv -f y.tab.h gram.h; fi
        -@true
 
 # Uncomment the $(LEX) and mv lines if you intend to modify toke.l