diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -183,6 +183,14 @@ SUB_MAKE= ${MAKE} -m ${.CURDIR}/share/mk _MAKE= PATH=${PATH} ${SUB_MAKE} -f Makefile.inc1 TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH} +# Must disable META_MODE when installing to avoid missing anything. The +# main problem is that buildworld will create cookies for install targets +# since they are being installed into WORLDTMP. This avoids unneeded and +# redundant restaging but is dangerous for user install targets. +.if make(distrib*) || make(*install*) +_MAKE+= MK_META_MODE=no +.endif + # Guess machine architecture from machine type, and vice versa. .if !defined(TARGET_ARCH) && defined(TARGET) _TARGET_ARCH= ${TARGET:S/pc98/i386/:S/arm64/aarch64/} |