Re: Very long SRCS list with unusually long src/ prefix

From: Bruce Evans <bde_at_zeta.org.au>
Date: Sat, 7 Feb 2004 03:07:55 +1100 (EST)
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
Received on Fri Feb 06 2004 - 07:08:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC