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:
parent
ebdb43a2f8
commit
88505e11bc
@ -390,7 +390,7 @@ maninstall:
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
|
||||
.if !exists(${DEPENDFILE})
|
||||
.if !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${OBJS} ${STATICOBJS} ${POBJS} ${SOBJS}: ${SRCS:M*.h}
|
||||
.endif
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user