svn commit: r298229 - head/share/mk

Simon J. Gerraty sjg at FreeBSD.org
Mon Apr 18 22:00:28 UTC 2016


Author: sjg
Date: Mon Apr 18 22:00:26 2016
New Revision: 298229
URL: https://svnweb.freebsd.org/changeset/base/298229

Log:
  Allow -f dirdeps.mk some/dir with no TARGET_MACHINE spec
  
  Use $MACHINE if target does not specify.
  
  Reviewed by:	bdrewery

Modified:
  head/share/mk/dirdeps.mk

Modified: head/share/mk/dirdeps.mk
==============================================================================
--- head/share/mk/dirdeps.mk	Mon Apr 18 21:11:55 2016	(r298228)
+++ head/share/mk/dirdeps.mk	Mon Apr 18 22:00:26 2016	(r298229)
@@ -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


More information about the svn-src-head mailing list