Instruct emacs to use correct mode for Makefile.am.