Require DESTDIR to be set when installing for a different architecture.

This commit is contained in:
Ruslan Ermilov 2005-11-07 15:03:04 +00:00
parent 60d3d21057
commit e576df395b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152156

View File

@ -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
#