Make the .y.c rule 'make -j n' friendly.

Inspired by: bde and brian@mediacity.com
This commit is contained in:
Steve Price 1997-01-06 02:07:35 +00:00
parent 55f61394b6
commit e10e3950fa

View File

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