Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Fix "Define compile rules in sys/conf/Makefile.kern...
details: https://anonhg.NetBSD.org/src/rev/fc0836f102de
branches: trunk
changeset: 340304:fc0836f102de
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sun Aug 30 21:16:10 2015 +0000
description:
Fix "Define compile rules in sys/conf/Makefile.kern.inc ...".
Use `.if !commands(xxx)' to check if `xxx' has a defined, overriden rule,
instead of `.if !targets(xxx)'. The latter evaluates as true even when `xxx'
has an empty rule to define a dependency.
diffstat:
sys/conf/Makefile.kern.inc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 7359e86c8399 -r fc0836f102de sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Sun Aug 30 18:27:26 2015 +0000
+++ b/sys/conf/Makefile.kern.inc Sun Aug 30 21:16:10 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.215 2015/08/30 14:06:17 uebayasi Exp $
+# $NetBSD: Makefile.kern.inc,v 1.216 2015/08/30 21:16:10 uebayasi Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -161,14 +161,14 @@
${LD} -r ${LINKFORMAT} -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC}
.for _s in ${CFILES}
-.if !target(${_s:T:R}.o)
+.if !commands(${_s:T:R}.o)
${_s:T:R}.o: ${_s}
${NORMAL_C}
.endif
.endfor
.for _s in ${SFILES}
-.if !target(${_s:T:R}.o)
+.if !commands(${_s:T:R}.o)
${_s:T:R}.o: ${_s}
${NORMAL_S}
.endif
Home |
Main Index |
Thread Index |
Old Index