diff options
author | sjg <sjg@FreeBSD.org> | 2016-04-18 22:00:26 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2016-04-18 22:00:26 +0000 |
commit | c2c4e0063764efa28c4eebf08439db13c4a2f575 (patch) | |
tree | 74474e41028bbfb5877a7d09697bad5fa6aa1157 /share/mk | |
parent | 77ec731d14e7c5c84f88a8377c5379890a42a9b7 (diff) | |
download | FreeBSD-src-c2c4e0063764efa28c4eebf08439db13c4a2f575.zip FreeBSD-src-c2c4e0063764efa28c4eebf08439db13c4a2f575.tar.gz |
Allow -f dirdeps.mk some/dir with no TARGET_MACHINE spec
Use $MACHINE if target does not specify.
Reviewed by: bdrewery
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/dirdeps.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/dirdeps.mk b/share/mk/dirdeps.mk index f2e006c..4fdd287 100644 --- a/share/mk/dirdeps.mk +++ b/share/mk/dirdeps.mk @@ -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 |