makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file

So, if I run make with specified file:

make -f target.mak

is it possible to have the 'target' inside of the that 'target.mak' from the file name?

MAKEFILE_LIST may be what you're looking for.

Thank you, it is applied, at least I get an idea, how 'make' vorks with variable. (It seems, our system uses not GNU 'make'.)