From owner-svn-src-head@FreeBSD.ORG Sat Jul 5 20:08:35 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9394133; Sat, 5 Jul 2014 20:08:35 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B67C02941; Sat, 5 Jul 2014 20:08:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s65K8ZMS044392; Sat, 5 Jul 2014 20:08:35 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s65K8ZHX044391; Sat, 5 Jul 2014 20:08:35 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201407052008.s65K8ZHX044391@svn.freebsd.org> From: Rui Paulo Date: Sat, 5 Jul 2014 20:08:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268300 - head/share/mk X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 20:08:35 -0000 Author: rpaulo Date: Sat Jul 5 20:08:35 2014 New Revision: 268300 URL: http://svnweb.freebsd.org/changeset/base/268300 Log: bsd.dep.mk: add support for generating DTrace header files from .d files. MFC after: 3 weeks Modified: head/share/mk/bsd.dep.mk Modified: head/share/mk/bsd.dep.mk ============================================================================== --- head/share/mk/bsd.dep.mk Sat Jul 5 20:08:25 2014 (r268299) +++ head/share/mk/bsd.dep.mk Sat Jul 5 20:08:35 2014 (r268300) @@ -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)