[Top][All Lists]

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

Re: `cd foo && make` != `make -C foo`

From: Akim Demaille
Subject: Re: `cd foo && make` != `make -C foo`
Date: Fri, 24 Nov 2017 13:36:02 +0100

Hi Paul!

Thanks for the detailed answer.

> Le 10 nov. 2017 à 17:50, Paul Smith <address@hidden> a écrit :
> On Fri, 2017-11-10 at 17:36 +0100, Akim Demaille wrote:
>> in other words, cd respects my symlinks, but make -C resolves them.
> These statements don't make sense to me: what does "respecting a
> symlink" mean, and how is it different from "resolving a symlink »?

OMG… How could I have missed that… I guess I had already burned
too many neurons trying to reproduce the problems observed in
the full scale project.

>> It turns out that on the project I work on, due to specific layout
>> constraints (golang trees…) resolving the symlink breaks everything.
> This is bad behavior on the part of your build system,

I wholeheartedly agree on this.

> but if you want
> to avoid fixing it and instead work around it, and you want to use
> "make -C", you can set PWD yourself:
>    PWD="$PWD/bar" make -C bar

Well, I think it would be nice from Make to do it, but I can understand
arguments against this, so…

Again, many thanks and apologies.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]