I'm crunching out some complex 'make' rules , and am having a brain
fart as to what sorts of rules are safe to use with '-j'.

As a matter of example, I'm looking at /usr/share/mk/sys.mk under
4.5-RELEASE:

  # XXX not -j safe
  .y.out:
        ${YACC} ${YFLAGS} ${.IMPSRC}
        ${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET}
        rm -f y.tab.c

  .l.out:
        ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
        ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET}
        rm -f ${.PREFIX}.tmp.c

Why is the .y.out target annotated as 'not -j safe', but the next
target is?

-- 
Brian 'you Bastard' Reichert            <[EMAIL PROTECTED]>
37 Crystal Ave. #303                    Daytime number: (603) 434-6842
Derry NH 03038-1713 USA                 Intel architecture: the left-hand path

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to