From e576df395be6add537bcad955b74a496951c32e1 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 7 Nov 2005 15:03:04 +0000 Subject: [PATCH] Require DESTDIR to be set when installing for a different architecture. --- Makefile.inc1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index f9980634115b..c1d494f1eff2 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -480,6 +480,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 #