aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-11-07 15:03:04 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-11-07 15:03:04 +0000
commite576df395be6add537bcad955b74a496951c32e1 (patch)
tree4d9c85390fa082a5fdfd389925dcc7f80e66280c /Makefile.inc1
parent60d3d21057533e7a336f8504806f0faf41814b02 (diff)
Notes
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc112
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index f9980634115b..c1d494f1eff2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -481,6 +481,18 @@ kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries}
SPECIAL_INSTALLCHECKS=
#
+# Require DESTDIR to be set if installing for a different architecture.
+#
+.if ${TARGET_ARCH} != ${MACHINE_ARCH} || ${TARGET} != ${MACHINE}
+SPECIAL_INSTALLCHECKS+= installcheck_DESTDIR
+installcheck_DESTDIR:
+.if !defined(DESTDIR) || empty(DESTDIR)
+ @echo "ERROR: Please set DESTDIR!"; \
+ false
+.endif
+.endif
+
+#
# installcheck
#
# Checks to be sure system is ready for installworld