Add mode for Makefile.am

It uses the same mode as make.

It might not be the most appropriate, but it's something.