help-make
[Top][All Lists]
Advanced

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

path to included makefile?


From: Nicholas Leippe
Subject: path to included makefile?
Date: Mon, 4 Nov 2002 07:25:35 -0700

Hi,

I have a Makefile with:

-include $(addsuffix /module.mk,$(SUBDIRS))

inside the module.mk, I would like to know it's actual path, eg:

/project/Makefile
/project/src/module.mk

invoking make from /project I'd like to get any of:

/project/src
/project/src/module.mk
src
src/module.mk

any would do.

Is there a way to do this apart from explicitly setting a variable inside 
module.mk itself?  I've searched to see if perhaps some variable is already 
defined to the current file but didn't see anything.


Nick




reply via email to

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