Use makefile-mode for files name Makefile.foo.bar.