summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-07 14:58:12 +0000
committerru <ru@FreeBSD.org>2002-04-07 14:58:12 +0000
commitcb2e5376337475d49880af1d894ab4f92c4439cb (patch)
tree25bf0a8d8e75b21a659b649e56b2b3003dc176b2 /share
parent385d4388dcfcfda839a506548952f773a6e3ff14 (diff)
downloadFreeBSD-src-cb2e5376337475d49880af1d894ab4f92c4439cb.zip
FreeBSD-src-cb2e5376337475d49880af1d894ab4f92c4439cb.tar.gz
Fixed the nasty bug where .depend file that exists somewhere in
the .PATH (but not in the ${.OBJDIR}) would result in a leak of the ${OBJS}: ${SRCS:M*.h} dependency hint. Spotted by: fixing the broken gnu/usr.bin/cc/cc1obj build MFC after: 1 day
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.lib.mk2
-rw-r--r--share/mk/bsd.prog.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 0d75e84..692cb91 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -390,7 +390,7 @@ maninstall:
.include <bsd.dep.mk>
-.if !exists(${DEPENDFILE})
+.if !exists(${.OBJDIR}/${DEPENDFILE})
${OBJS} ${STATICOBJS} ${POBJS} ${SOBJS}: ${SRCS:M*.h}
.endif
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 25c9e04..4163118 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -240,7 +240,7 @@ regress:
.include <bsd.dep.mk>
-.if defined(PROG) && !exists(${DEPENDFILE})
+.if defined(PROG) && !exists(${.OBJDIR}/${DEPENDFILE})
${OBJS}: ${SRCS:M*.h}
.endif
OpenPOWER on IntegriCloud