From: Todd C. Miller Date: Wed, 17 Nov 2004 18:19:45 +0000 (+0000) Subject: When regenerating the parser, don't replace gram.h unless it has changed. X-Git-Tag: SUDO_1_7_0~808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81f5587329cb15022298a502874c8ba74887877c;p=sudo When regenerating the parser, don't replace gram.h unless it has changed. --- diff --git a/Makefile.in b/Makefile.in index 3282ac09e..23cc5e71e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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