help-gnu-utils
[Top][All Lists]
Advanced

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

How to get the Makefile path?


From: wyse03br
Subject: How to get the Makefile path?
Date: 22 Jun 2006 10:57:17 -0700
User-agent: G2/0.2

Hi all,

    I need to get the path to the Makefile being processed by the make
executable. I tried to use the $(MFLAGS) variable for that, but it
ignores the -f switch. Look this test:

% cat  /home/me/Makefile
all:
        @echo MAKEFLAGS=$(MAKEFLAGS)
        @echo MFLAGS=$(MFLAGS)
        @echo MAKECMDGOALS=$(MAKECMDGOALS)

% make -nf /home/me/Makefile all
echo MAKEFLAGS=n
echo MFLAGS=-n
echo MAKECMDGOALS=all

   Any help will be appreciated.

   Rgds

                               Walter



reply via email to

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