From 9d887525da798c3a8409a7e88ed12d19e35bc8dc Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 3 Jul 2017 15:11:02 +0000 Subject: [PATCH] re-add dependencies from SRCS to corresponding OBJS. the old mkdep run did walk the SRCS list and write those as a side-effect. Without this, bsd.prog.mk .SUFFIXES order will have OBJS depend on the wrong src file. Causes of the alpha/stand/bootxx breakage. --- share/mk/bsd.dep.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index b433f4935e0..43774cc8650 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.dep.mk,v 1.17 2017/07/03 07:54:18 espie Exp $ +# $OpenBSD: bsd.dep.mk,v 1.18 2017/07/03 15:11:02 espie Exp $ # $NetBSD: bsd.dep.mk,v 1.12 1995/09/27 01:15:09 christos Exp $ .if !target(depend) @@ -29,6 +29,10 @@ tags: . endif .endif +# explicitly tag most source files +.for i in ${SRCS:N*.[hyl]:N*.sh} ${_LEXINTM} ${_YACCINTM} +${i:R:S/$/.o/}: $i +.endfor CLEANFILES += ${DEPS} .depend BUILDFIRST ?= -- 2.20.1