2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

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.
This commit is contained in:
Todd C. Miller
2007-08-30 16:45:28 +00:00
parent aaacf16ee0
commit 0e30ec1997

View File

@@ -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