Of course emacs did not "detect" your non-standard makefile.
It is your responsibility to let editors know that, be adding that magical first line to your make.
It is your responsibility to let editors know that, be adding that magical first line to your make.