From: Todd C. Miller Date: Thu, 30 Aug 2007 16:45:28 +0000 (+0000) Subject: Remove the dependency of gram .h on gram.y, the .c dependency is enough. X-Git-Tag: SUDO_1_7_0~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e30ec1997b81b50a5e4c7deebe694845ea82256;p=sudo Remove the dependency of gram .h on gram.y, the .c dependency is enough. Only move y.tab.h to gram.h if it is different; avoids needless rebuilding. --- diff --git a/Makefile.in b/Makefile.in index 3bc2f6774..78f062082 100644 --- a/Makefile.in +++ b/Makefile.in @@ -196,10 +196,10 @@ sudo_noexec.la: sudo_noexec.lo @DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h # Uncomment the lines before -@true if you intend to modify gram.y -$(devdir)/gram.c $(devdir)/gram.h: $(srcdir)/gram.y +$(devdir)/gram.c: $(srcdir)/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 y.tab.h gram.h`; then mv -f y.tab.h gram.h; else rm -f y.tab.h; fi -@true # Uncomment the lines before -@true if you intend to modify toke.l