From e10e3950fa4bd9ed203eb092874de4a00505a52d Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 6 Jan 1997 02:07:35 +0000 Subject: [PATCH] Make the .y.c rule 'make -j n' friendly. Inspired by: bde and brian@mediacity.com --- share/mk/sys.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 510c244c77df..fc24333dd440 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -1,5 +1,5 @@ # from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 -# $Id: sys.mk,v 1.17 1996/11/03 03:25:50 steve Exp $ +# $Id: sys.mk,v 1.18 1996/11/07 01:46:47 alex Exp $ unix ?= We run FreeBSD, not UNIX. @@ -190,10 +190,8 @@ YFLAGS ?= -d ${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET} rm -f ${.PREFIX}.tmp.c -# XXX not -j safe .y.c: - ${YACC} ${YFLAGS} ${.IMPSRC} - mv y.tab.c ${.TARGET} + ${YACC} ${YFLAGS} -o ${.TARGET} ${.IMPSRC} .l.c: ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET}