From owner-svn-src-all@FreeBSD.ORG Mon Jan 11 17:58:16 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 280201065672; Mon, 11 Jan 2010 17:58:16 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1713B8FC1C; Mon, 11 Jan 2010 17:58:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0BHwFgJ033426; Mon, 11 Jan 2010 17:58:15 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0BHwFGb033424; Mon, 11 Jan 2010 17:58:15 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201001111758.o0BHwFGb033424@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Mon, 11 Jan 2010 17:58:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r202095 - head X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 17:58:16 -0000 Author: bz Date: Mon Jan 11 17:58:15 2010 New Revision: 202095 URL: http://svn.freebsd.org/changeset/base/202095 Log: Rather than using an extra variable, only call uname if really needed and then directly assign the result. Submitted by: jmallett MFC after: 24 days X-MFC with: r201815 Modified: head/Makefile Modified: head/Makefile ============================================================================== --- head/Makefile Mon Jan 11 17:35:34 2010 (r202094) +++ head/Makefile Mon Jan 11 17:58:15 2010 (r202095) @@ -321,8 +321,9 @@ universe_${target}: @echo ">> ${target} completed on `LC_ALL=C date`" .endfor universe_kernels: universe_kernconfs -XMACHINE!= uname -m -TARGET?= ${XMACHINE} +.if !defined(TARGET) +TARGET!= uname -m +.endif KERNCONFS!= cd ${.CURDIR}/sys/${TARGET}/conf && \ find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ ! -name DEFAULTS ! -name NOTES