Directly related to this question. How can I make the include directive in makefiles behave relatively to the location of the current script?
include
Assume tha
Is there a builtin variable with the current makefile's name?
Yes, there is, use ${CURDIR}. This is the directory where top-level Makefile is located, so you don't need to strip anything from it.
http://www.gnu.org/software/make/manual/make.html#Recursion