Module Name: src Committed By: uebayasi Date: Sun Aug 30 21:16:10 UTC 2015
Modified Files: src/sys/conf: Makefile.kern.inc Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.215 -r1.216 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.215 src/sys/conf/Makefile.kern.inc:1.216 --- src/sys/conf/Makefile.kern.inc:1.215 Sun Aug 30 14:06:17 2015 +++ src/sys/conf/Makefile.kern.inc Sun Aug 30 21:16:10 2015 @@ -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 @@ LINK_O?= @${_MKSHMSG} " link ${.CURDI ${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