Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2004 03:07:55 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        current@freebsd.org
Subject:   Re: Very long SRCS list with unusually long src/ prefix
Message-ID:  <20040207023229.L872@gamplex.bde.org>
In-Reply-To: <20040205.214341.11990356.imp@bsdimp.com>
References:  <20040206012805.N8113@gamplex.bde.org> <20040205151425.GA18523@FreeBSD.org.ua> <20040205.214341.11990356.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Feb 2004, M. Warner Losh wrote:

> In message: <20040206030956.F11456@gamplex.bde.org>
>             Bruce Evans <bde@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



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