List Info

Thread: How to get the Makefile path?




How to get the Makefile path?
user name
2006-06-22 17:57:17
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

_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )