In particular, "Makefile" matched "test/Makefile" without the anchor.
Add .gitignore file to tell git about files that don't need to be tracked.