From 5467bb48693ab3341378081f870bc148f76d5aa8 Mon Sep 17 00:00:00 2001
From: bz <bz@FreeBSD.org>
Date: Mon, 11 Jan 2010 17:58:15 +0000
Subject: 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
---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 231d71b..bd26716 100644
--- a/Makefile
+++ b/Makefile
@@ -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
-- 
cgit v1.1