Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 00:02:16 -0500
From:      Brian Reichert <reichert@numachi.com>
To:        hackers@freebsd.org
Subject:   seeking clarification of makefile rules 'safe' with -j
Message-ID:  <20021121000216.H82833@numachi.com>

next in thread | raw e-mail | index | archive | help
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		<reichert@numachi.com>
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021121000216.H82833>