Auto-generating .gitignore with GNU make
I was working on my grad school work and did a ‘git status’ to prep for syncing my code with Bitbucket. I had just done a build and my executable was still there and of course git reported it as a new file. I figured it would be a pain to add the executable name to .gitignore every time and wondered if there was an automated way to keep .gitignore up to date using my Makefile. A quick search revealed the above article which was very informative.