1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

Allow -f dirdeps.mk some/dir with no TARGET_MACHINE spec

Use $MACHINE if target does not specify.

Reviewed by:	bdrewery
This commit is contained in:
Simon J. Gerraty 2016-04-18 22:00:26 +00:00
parent f31828ed9c
commit 30e2910007
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298229

View File

@ -135,6 +135,9 @@ DIRDEPS := ${.TARGETS:M*[/.]*}
DEP_RELDIR := ${DIRDEPS:[1]:R}
# this will become DEP_MACHINE below
TARGET_MACHINE := ${DIRDEPS:[1]:E:C/,.*//}
.if ${TARGET_MACHINE:N*/*} == ""
TARGET_MACHINE := ${MACHINE}
.endif
# disable DIRDEPS_CACHE as it does not like this trick
MK_DIRDEPS_CACHE = no
.endif