Module Name:    src
Committed By:   jmcneill
Date:           Sun Aug 28 23:15:53 UTC 2011

Modified Files:
        src/sys/conf: Makefile.kern.inc

Log Message:
let kernel makefile override *.d targets


To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.146 src/sys/conf/Makefile.kern.inc:1.147
--- src/sys/conf/Makefile.kern.inc:1.146	Thu Aug 18 02:19:20 2011
+++ src/sys/conf/Makefile.kern.inc	Sun Aug 28 23:15:53 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.146 2011/08/18 02:19:20 christos Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.147 2011/08/28 23:15:53 jmcneill Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -358,16 +358,20 @@
 DEPS=	${SRCS:T:O:u:R:S/$/.d/g}
 
 .for _s in ${SSRCS}
+.if !target(${_s:T:R}.d)
 ${_s:T:R}.d: ${_s} assym.h
 	${_MKTARGET_CREATE}
 	${MKDEP} -f ${.TARGET} -- ${MKDEP_AFLAGS} \
 	    ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
+.endif
 .endfor
 .for _s in ${CSRCS}
+.if !target(${_s:T:R}.d)
 ${_s:T:R}.d: ${_s}
 	${_MKTARGET_CREATE}
 	${MKDEP} -f ${.TARGET} -- ${MKDEP_CFLAGS} \
 	    ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
+.endif
 .endfor
 
 assym.d: assym.h

Reply via email to