svn commit: r288966 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Wed Oct 7 00:46:11 UTC 2015


On 10/6/2015 5:32 PM, Simon J. Gerraty wrote:
> Author: sjg
> Date: Wed Oct  7 00:32:33 2015
> New Revision: 288966
> URL: https://svnweb.freebsd.org/changeset/base/288966
> 
> Log:
>   To help bootstrap new local depends,
>   if SRCS contains *.h for which there are targets,
>   make buildfiles depend on them - so they get generated early.
> 
> Modified:
>   head/share/mk/local.autodep.mk
> 
> Modified: head/share/mk/local.autodep.mk
> ==============================================================================
> --- head/share/mk/local.autodep.mk	Wed Oct  7 00:28:24 2015	(r288965)
> +++ head/share/mk/local.autodep.mk	Wed Oct  7 00:32:33 2015	(r288966)
> @@ -14,6 +14,12 @@ LDFLAGS+= ${LDFLAGS_LAST}
>  
>  CLEANFILES+= .depend
>  
> +.for h in ${SRCS:M*.h}

I think we can use DPSRCS as well for this.

> +.if target($h)
> +buildfiles: $h
> +.endif
> +.endfor
> +
>  # handy for debugging
>  .SUFFIXES:  .S .c .cc .cpp .cpp-out
>  
> 


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20151006/67105f1a/attachment.bin>


More information about the svn-src-head mailing list