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

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

Special variable with current Makefile name?


From: Markus Dehmann
Subject: Special variable with current Makefile name?
Date: Wed, 14 Dec 2005 11:46:46 -0500
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Is there a special variable that contains the name of the current Makefile?

I need this because my Makefile calls itself, but the filename is "rules.mk", not Makefile.

So, for a recursive call I need to say:
$(MAKE) $(MFLAGS) -f rules.mk

But "rules.mk" I do not want to hardcode. I might want to change the file name at some point.

Thanks!
Markus


reply via email to

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