help-make
[Top][All Lists]
Advanced

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

finding path of included .mk file?


From: mcmahill
Subject: finding path of included .mk file?
Date: Tue, 13 Aug 2002 23:25:44 -0400 (EDT)

I'd like to be able to do something like the following:

create a makefile that has towards the end a line like:

include /some/strange/path/foo.mk

Then inside of foo.mk there are some checks and if certain conditions are
met, foo.mk wants to do

include /some/strange/path/bar.mk


The problem is I'd rather not hard code the /some/strange/path/ part into
foo.mk.  For some make's, like BSD make, the second include call can omit
the /some/strange/path/ part.  I think include calls will look in the
location of the parent file.

Can I do this with GNU make?

Thanks

-Dan





reply via email to

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