diff options
author | ru <ru@FreeBSD.org> | 2005-11-07 15:03:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-11-07 15:03:04 +0000 |
commit | 337103ed9b320bf90e6cd6df6274ffe90d729659 (patch) | |
tree | 4d9c85390fa082a5fdfd389925dcc7f80e66280c | |
parent | 18fc4b11b970023df7ac96da6c60462df4f58391 (diff) | |
download | FreeBSD-src-337103ed9b320bf90e6cd6df6274ffe90d729659.zip FreeBSD-src-337103ed9b320bf90e6cd6df6274ffe90d729659.tar.gz |
Require DESTDIR to be set when installing for a different architecture.
-rw-r--r-- | Makefile.inc1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index f998063..c1d494f 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 |