Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 17:58:15 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202095 - head
Message-ID:  <201001111758.o0BHwFGb033424@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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