summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-10-29 01:21:29 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-10-29 01:21:29 +0000
commit5bd47cc56f12ffcd0d577798a8a370bad46eb51f (patch)
tree3f0c12d152622f35b41ae49c4564722f445c08fc /Makefile.inc1
parentb135fb6ef4b5cfbb3056a2ef50e176ddd9e4e4c3 (diff)
downloadsrc-test2-5bd47cc56f12ffcd0d577798a8a370bad46eb51f.tar.gz
src-test2-5bd47cc56f12ffcd0d577798a8a370bad46eb51f.zip
Notes
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc19
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 39be60e388a4..9b09d2121d58 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2098,7 +2098,11 @@ cross-tools: .MAKE .PHONY
# to pickup.
#
NXBOBJDIR= ${MAKEOBJDIRPREFIX}/nxb/${TARGET}.${TARGET_ARCH}
-NXBDESTDIR= ${NXBOBJDIR}${.CURDIR}/nxb-bin
+NXTP?= /nxb-bin
+.if ${NXTP:N/*}
+.error NXTP variable should be an absolute path
+.endif
+NXBDESTDIR?= ${DESTDIR}${NXTP}
# This is the list of tools to be built/installed as static and where
# appropriate to build for the given TARGET.TARGET_ARCH.
@@ -2227,6 +2231,9 @@ native-xtools: .PHONY
.endif
${_+_}cd ${.CURDIR}; ${NXBMAKE} SUBDIR_OVERRIDE="${NXBDIRS:M*}" \
everything
+ @echo ">> native-xtools done. Use 'make native-xtools-install' to install to a given DESTDIR"
+
+native-xtools-install: .PHONY
mkdir -p ${NXBDESTDIR}/bin ${NXBDESTDIR}/sbin ${NXBDESTDIR}/usr
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
-p ${NXBDESTDIR}/usr >/dev/null