From 88505e11bca0e48191eb42e09bef01a88206bed5 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sun, 7 Apr 2002 14:58:12 +0000 Subject: [PATCH] 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 --- share/mk/bsd.lib.mk | 2 +- share/mk/bsd.prog.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 0d75e8451e4c..692cb9150cdc 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -390,7 +390,7 @@ maninstall: .include -.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 25c9e0406841..4163118f058b 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -240,7 +240,7 @@ regress: .include -.if defined(PROG) && !exists(${DEPENDFILE}) +.if defined(PROG) && !exists(${.OBJDIR}/${DEPENDFILE}) ${OBJS}: ${SRCS:M*.h} .endif