Re: variable MAKEOBJDIR inside of Makefile

Roland Illig <[email protected]> Sun, 9 Feb 2025 12:41:36 +0100
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
Am 09.02.2025 um 11:14 schrieb David Holland:
> On Wed, Feb 05, 2025 at 11:13:12AM +0100, Roland Illig wrote:
>  > In make, the ".include" directive is relative to the including file, not
>  > the object directory.
>
> (but aren't .includes handled with a path that also includes the
> current directory?)

Yes, I was a bit sloppy as well in my wording.

First, make searches the file relative to the including file.

Second, make searches the file relative to the current directory.

All in all, which exact locations are searched by a simple '.include
"file.mk"' is quite elaborate, and the -dd debug option helps to get a
good high-level overview.

Roland