make-w32
[Top][All Lists]
Advanced

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

Re: current directory


From: Eli Zaretskii
Subject: Re: current directory
Date: Fri, 14 Dec 2007 13:18:52 +0200

> Date: Thu, 13 Dec 2007 22:46:43 +0100
> From: fabien <address@hidden>
> CC: "'address@hidden'" <address@hidden>
> 
>  > Then something is wrong with your shell, or with the cd command, or
>  > maybe you have your shell set up to go to the root directory.  Since
>  > $(CURDIR), computed by Make on startup, shows the correct directory,
>  > I'd say Make is working correctly, starting in the directory where you
>  > invoked it, while $(shell cd) somehow messes things up.
> 
> I think it's a problem if an application doesn't have the same result on
> different computers.

I agree that it's a problem, but the question is: where is the reason
for that problem?  So far, I see no evidence that the reason is in
Make.  To the contrary, I see evidence that Make is working correctly:
the value of $(CURDIR) is computed by Make when it starts, and its
value clearly shows that Make starts in the directory where you
invoked it.

> The problem is not the command "cd" but all shell 
> commands like "dir", etc.
> "maybe you have your shell set up to go to the root directory" << I 
> don't know. How can it be done? How can I check?

Invoke Make with the "--debug=all" command-line switch, and post here
everything that it prints when running the following Makefile:

all:
        echo $(CURDIR)
        echo $(shell cd)




reply via email to

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