From owner-freebsd-current@FreeBSD.ORG Fri Feb 6 08:08:11 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B33F16A4CF; Fri, 6 Feb 2004 08:08:11 -0800 (PST) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9BC843D58; Fri, 6 Feb 2004 08:08:08 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])i16G7w5O030040; Sat, 7 Feb 2004 03:07:58 +1100 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i16G7tYc004516; Sat, 7 Feb 2004 03:07:57 +1100 Date: Sat, 7 Feb 2004 03:07:55 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "M. Warner Losh" In-Reply-To: <20040205.214341.11990356.imp@bsdimp.com> Message-ID: <20040207023229.L872@gamplex.bde.org> References: <20040206012805.N8113@gamplex.bde.org> <20040205151425.GA18523@FreeBSD.org.ua> <20040205.214341.11990356.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: Very long SRCS list with unusually long src/ prefix X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 16:08:11 -0000 On Thu, 5 Feb 2004, M. Warner Losh wrote: > In message: <20040206030956.F11456@gamplex.bde.org> > Bruce Evans 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