| Newsgroups |
gmane.comp.gnu.utils |
| Organization |
http://groups.google.com |
| Message-ID |
<[email protected]> |
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