Subject: toolchain/15263: make(1) is willing to pick up .depend from too many locations
To: None <email@example.com>
From: Paul Kranenburg <firstname.lastname@example.org>
Date: 01/16/2002 15:33:48
>Synopsis: make(1) is willing to pick up .depend from too many locations
>Arrival-Date: Wed Jan 16 06:35:00 PST 2002
>Originator: Paul Kranenburg
>Release: NetBSD-current, january 2002
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..