summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2011-07-07 22:28:18 +0000
committerguenther <guenther@openbsd.org>2011-07-07 22:28:18 +0000
commitbf79ef4fb71c5914b99e34f790f35cc521ab79f2 (patch)
tree6baed43ec736954963d434a3592e7e6915795124 /sys/arch/sparc
parentadd wsmoused script and switch xdm and wsmoused in rc (diff)
downloadwireguard-openbsd-bf79ef4fb71c5914b99e34f790f35cc521ab79f2.tar.xz
wireguard-openbsd-bf79ef4fb71c5914b99e34f790f35cc521ab79f2.zip
The drahn memorial bad kernel build fix: prevent blood pressure
spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/conf/Makefile.sparc10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc
index e824d9d5b64..d200d41bfcc 100644
--- a/sys/arch/sparc/conf/Makefile.sparc
+++ b/sys/arch/sparc/conf/Makefile.sparc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc,v 1.71 2011/07/06 02:08:05 tedu Exp $
+# $OpenBSD: Makefile.sparc,v 1.72 2011/07/07 22:28:18 guenther Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -161,9 +161,11 @@ install-kernel-${MACHINE_NAME}:
${SYSTEM_OBJ}: ${DB_STRUCTINFO}
.endif
.ifnmake clean
-. for o in ${SYSTEM_OBJ:.o=.d} assym.d ${DB_STRUCTINFO:.h=.d}
-. if exists($o)
-. include "$o"
+. for o in ${SYSTEM_OBJ} assym.h ${DB_STRUCTINFO}
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
. endif
. endfor
.endif