Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf let kernel makefile override *.d targets
details: https://anonhg.NetBSD.org/src/rev/052f32f79189
branches: trunk
changeset: 768914:052f32f79189
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Aug 28 23:15:53 2011 +0000
description:
let kernel makefile override *.d targets
diffstat:
sys/conf/Makefile.kern.inc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 8717eace408f -r 052f32f79189 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Sun Aug 28 22:55:52 2011 +0000
+++ b/sys/conf/Makefile.kern.inc Sun Aug 28 23:15:53 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index