summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-01-11 17:58:15 +0000
committerbz <bz@FreeBSD.org>2010-01-11 17:58:15 +0000
commit5467bb48693ab3341378081f870bc148f76d5aa8 (patch)
tree931f8b5f5317f35141929c1bb05e441e1e3f4dbb /Makefile
parent24dcc741983ecfb0946f681277036be8e0764bcc (diff)
downloadFreeBSD-src-5467bb48693ab3341378081f870bc148f76d5aa8.zip
FreeBSD-src-5467bb48693ab3341378081f870bc148f76d5aa8.tar.gz
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
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
OpenPOWER on IntegriCloud