Very long SRCS list with unusually long src/ prefix
Bruce Evans
bde at zeta.org.au
Fri Feb 6 08:08:11 PST 2004
On Thu, 5 Feb 2004, M. Warner Losh wrote:
> In message: <20040206030956.F11456 at gamplex.bde.org>
> Bruce Evans <bde at zeta.org.au> writes:
> : > > % + (cd ${.CURDIR}; ${MAKE} _mkdep_cS) | xargs env \
> : > > % + ${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
> : > > % + ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BID]*}
> : > >
> : > > make uses a real shell, so the env shouldn't be needed.
> : > >
> : > $ echo foo.c | xargs CC=cc mkdep
> : > xargs: CC=cc: No such file or directory
> :
> : $ echo foo.c | CC=cc xargs mkdep
>
> But MKDEPCMD is 'CC=cc mkdep', so the env is needed... Unless there's
> a MKDEPCMD_ENV variable...
I missed the mkdep in MKDEPCMD. MKDEPCMD is actually just mkdep in the
usual case and "CC='${CC}' mkdep" in the ${CC} != "cc" case. Putting
args in the macro for the command is mostly foot shooting here.
Kernel makefiles handle this better.
Bruce
More information about the freebsd-current
mailing list