From 29de595612fccf2d40a55dbdebe3a68245cc798c Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 15 Nov 2007 22:39:15 +0000 Subject: Fix bad rule and bad dependency for nsparser.h that can cause the build to fail because y.tab.c can have a more recent modification time than y.tab.h, and the bad rule relied on the opposite. (The last write to y.tab.c by yacc(1) happens after the last write to y.tab.h, according to truss(1).) Reported by: kensmith --- lib/libc/net/Makefile.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index 9d96ad8..4eadf98 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -12,7 +12,7 @@ SRCS+= base64.c ether_addr.c eui64.c \ getproto.c getprotoent.c getprotoname.c getservent.c \ if_indextoname.c if_nameindex.c if_nametoindex.c \ ip6opt.c linkaddr.c map_v4v6.c name6.c ntoh.c \ - nsdispatch.c nslexer.c nsparser.c nss_compat.c \ + nsdispatch.c nslexer.c nsparser.y nss_compat.c \ rcmd.c rcmdsh.c recv.c rthdr.c sctp_sys_calls.c send.c \ sockatmark.c sourcefilter.c vars.c @@ -34,12 +34,9 @@ CFLAGS+=-I${.CURDIR}/resolv YFLAGS+=-p_nsyy LFLAGS+=-P_nsyy -CLEANFILES+=nsparser.c nslexer.c nsparser.h +CLEANFILES+=nslexer.c -nsparser.h: nsparser.c - mv y.tab.h ${.TARGET} - -nslexer.c: nslexer.l nsparser.h +nslexer.c: nslexer.l ${LEX} ${LFLAGS} -o/dev/stdout ${.IMPSRC} | \ sed -e '/YY_BUF_SIZE/s/16384/1024/' >${.TARGET} -- cgit v1.1