Re: current directory
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gnu.make.windows |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 13 Dec 2007 19:18:06 +0100 > From: "[email protected]" <[email protected]> > CC: [email protected] > > I tested this Makefile : > > all: > @echo $(shell cd) > @echo $(CURDIR) > > And it returns : > > C:\ > C:/home/testMakeWin 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.