tech-toolchain archive

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

Re: variable MAKEOBJDIR inside of Makefile



Am 02.02.2025 um 01:37 schrieb David Holland:
> Doing much better than that requires improving make's internal phase
> structure. In a world where make parsed first, you could set .OBJDIR
> after parsing and before interpreting any string other than an include
> name as a path. In that world includes would be relative to
> the source directory rather than the object directory and that'd be
> fine, probably even desirable.

In make, the ".include" directive is relative to the including file, not
the object directory.

Or did you mean the -I option to the C compiler?

> (I started trying to move make to that world at one point, a long time
> back now, but didn't get very far and rillig's gone off in other
> directions since.)

I didn't change the behavior of that part of make, plus, the overall
structure of dir.c is mostly the same as in 2019.

Roland



Home | Main Index | Thread Index | Old Index