summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-08-07 13:41:46 +0000
committerru <ru@FreeBSD.org>2002-08-07 13:41:46 +0000
commitcb35d94c9240fa7c8344c31338dcb018ad88bbe8 (patch)
treecf1e5f51cb604e3ba387cf43ab79d63f054c04cc /Makefile.inc1
parent2c0f1f41c3f62fb95f887480a5a63c21e780e744 (diff)
downloadFreeBSD-src-cb35d94c9240fa7c8344c31338dcb018ad88bbe8.zip
FreeBSD-src-cb35d94c9240fa7c8344c31338dcb018ad88bbe8.tar.gz
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)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index e1216d3..0ffd05c 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -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 ?=.
OpenPOWER on IntegriCloud