Subject: toolchain/15263: make(1) is willing to pick up .depend from too many locations
To: None <gnats-bugs@gnats.netbsd.org>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: netbsd-bugs
Date: 01/16/2002 15:33:48
>Number:         15263
>Category:       toolchain
>Synopsis:       make(1) is willing to pick up .depend from too many locations
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 16 06:35:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Kranenburg
>Release:        NetBSD-current, january 2002
>Organization:
	
>Environment:
>Description:
	When looking for a .depend file, and finding none in the object
	directory, make(1) will look elsewhere for one along the current
	search directory paths, i.e. .CURDIR, any -I specified paths and
	finally in even in the system directory (usually /usr/share/mk).
	This behaviour is not mentioned in the make documentation and its
	usefulness is questionable. If ever a stray .depend appears in
	the search path, confusing failures may result.

	The same is true, btw., for the search for `makefile' and `Makefile'.
	E.g. a stray `makefile' in the object directory takes precedence over
	a `Makefile' in the source directory, and there's also hardly any
	need for a system-wide /usr/share/mk/Makefile.. 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: