On Sun, May 3, 2009 at 7:03 PM, Philip Guenther <[email protected]> wrote: > On Sun, May 3, 2009 at 9:52 AM, Peng Yu <[email protected]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
