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
This commit is contained in:
Ruslan Ermilov 2002-04-07 14:58:12 +00:00
parent ebdb43a2f8
commit 88505e11bc
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ maninstall:
.include <bsd.dep.mk>
.if !exists(${DEPENDFILE})
.if !exists(${.OBJDIR}/${DEPENDFILE})
${OBJS} ${STATICOBJS} ${POBJS} ${SOBJS}: ${SRCS:M*.h}
.endif

View File

@ -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