Take advantage of the recursive nature of .gitignore for Makefile entries. Prefix other entries with '/' to make them non-recursive.