From 285ccb152c3d43b3907d1bd5491b7023e725a85c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 15 May 2010 15:12:06 -0400 Subject: [PATCH] gram.h must not depend on gram.y if we want to avoid unnecessary rebuilding of targets dependent on gram.h when gram.y changes. --- plugins/sudoers/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sudoers/Makefile.in b/plugins/sudoers/Makefile.in index 967a7fdb3..1beba9b85 100644 --- a/plugins/sudoers/Makefile.in +++ b/plugins/sudoers/Makefile.in @@ -159,7 +159,8 @@ testsudoers: $(TEST_OBJS) @DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate.c # Uncomment the lines before -@true if you intend to modify gram.y -gram.c gram.h: $(srcdir)/gram.y +# Note to prevent unnecessary changes to gram.h it does not depend on gram.y +gram.c: $(srcdir)/gram.y @DEV@ $(YACC) -d $(srcdir)/gram.y @DEV@ mv -f y.tab.c gram.c @DEV@ if cmp -s y.tab.h gram.h; then rm -f y.tab.h; else mv -f y.tab.h gram.h; fi -- 2.50.1