summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.prog.mk
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/mk/bsd.prog.mk
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/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk2
1 files changed, 1 insertions, 1 deletions
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