build: Switch to git.mk to keep the .gitignore file updated

Fixing the *CLEANFILES lists where needed and having git.mk generate the
.gitignore files automatically seemed more useful than manually updating
those files.

https://bugzilla.gnome.org/show_bug.cgi?id=706491