help-make
[Top][All Lists]
Advanced

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

Re: How to get the absolute path of a makefile?


From: Peng Yu
Subject: Re: How to get the absolute path of a makefile?
Date: Sun, 3 May 2009 20:03:34 -0500

On Sun, May 3, 2009 at 7:03 PM, Philip Guenther <address@hidden> wrote:
> On Sun, May 3, 2009 at 9:52 AM, Peng Yu <address@hidden> wrote:
>> I am wondering if there is a way to get the path of the directory
>> where a makefile is in (either the absolute path or the relative path
>> to the current directory). Can somebody help me?
>
> A search of the GNU make info pages for "current working directory"
> turns up three hits, two of which give the answer to your question.

Hi,

Thank you for your reply. But what you pointed to me is not exactly
what I am looking for.

I want the path of the directory where the Makefile is in.

make -f some_makefile_in_another_directory

If I use the above command, $CURDIR will not be the directory where
`some_makefile_in_another_directory' is in.

Regards,
Peng




reply via email to

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