From: | "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx> |
Date: | Thu, 18 Nov 2004 17:26:25 +0100 |
Ah.. yuck. What about this, then?The question is, whether we can change .y.c rule in sys.mk to make it -jNWe can't if YFLAGS include -d. Because our yacc has a slightly surprising
(as pointed out by Brad).
meaning of the -o option. It does set the name of the c-file and ALSO alters
the prefix for the headre file.
-# XXX not -j safe +# XXX hopefully -j safe.. .y.c: - ${YACC} ${YFLAGS} ${.IMPSRC} - mv y.tab.c ${.TARGET} + ${YACC} ${YFLAGS} -b $$$$ ${.IMPSRC} + mv $$$$.tab.c ${.TARGET} +.if !empty(${YFLAGS:M-d}) + mv $$$$.tab.h y.tab.h +.endif
cheers simon
-- /"\ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News
Attachment:
PGP.sig
Description: This is a digitally signed message part