Date: Thu, 31 Jul 2014 07:28:00 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r269324 - stable/10/share/mk Message-ID: <201407310728.s6V7S0Q2022025@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Thu Jul 31 07:27:59 2014 New Revision: 269324 URL: http://svnweb.freebsd.org/changeset/base/269324 Log: MFC r268300: bsd.dep.mk: add support for generating DTrace header files from .d files. Modified: stable/10/share/mk/bsd.dep.mk Directory Properties: stable/10/ (props changed) Modified: stable/10/share/mk/bsd.dep.mk ============================================================================== --- stable/10/share/mk/bsd.dep.mk Thu Jul 31 05:56:15 2014 (r269323) +++ stable/10/share/mk/bsd.dep.mk Thu Jul 31 07:27:59 2014 (r269324) @@ -78,6 +78,7 @@ ${_S:R}.o: ${_S} .endfor .endif +# Lexical analyzers .for _LSRC in ${SRCS:M*.l:N*/*} .for _LC in ${_LSRC:R}.c ${_LC}: ${_LSRC} @@ -90,6 +91,7 @@ CLEANFILES+= ${_LC} .endfor .endfor +# Yacc grammars .for _YSRC in ${SRCS:M*.y:N*/*} .for _YC in ${_YSRC:R}.c SRCS:= ${SRCS:S/${_YSRC}/${_YC}/} @@ -117,6 +119,16 @@ ${_YC:R}.o: ${_YC} .endif .endfor .endfor + +# DTrace probe definitions +.for _DSRC in ${SRCS:M*.d:N*/*} +.for _DH in ${_DSRC:R}.h +${_DH}: ${_DSRC} + ${DTRACE} -xnolibs -h -s ${.ALLSRC} +SRCS:= ${SRCS:S/${_DSRC}/${_DH}/} +CLEANFILES+= ${_DH} +.endfor +.endfor .endif .if !target(depend)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407310728.s6V7S0Q2022025>