tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: variable MAKEOBJDIR inside of Makefile



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



Home | Main Index | Thread Index | Old Index