Makefile.inc1 may eventually be merged with Makefile, so fix an

endless recursion bug similar to the one that has been fixed in
release/Makefile,v 1.698, in advance.  A related fix to make(1)
has been committed in make/main.c,v 1.68.

Requested by:	bde (who has them merged already)
This commit is contained in:
Ruslan Ermilov 2002-08-07 13:41:46 +00:00
parent 19d732af8b
commit 10a6b1ffc9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101461

View File

@ -131,7 +131,7 @@ TARGET_CPUTYPE?=${CPUTYPE}
TARGET?= ${TARGET_ARCH}
TARGET_CPUTYPE?=
.endif
_CPUTYPE!= cd ${.CURDIR}; ${MAKE} -m ${.CURDIR}/share/mk \
_CPUTYPE!= ${MAKE} -f /dev/null -m ${.CURDIR}/share/mk \
CPUTYPE=X${TARGET_CPUTYPE} -V CPUTYPE
.if ${_CPUTYPE} != X${TARGET_CPUTYPE}
.error CPUTYPE global should be set with ?=.