GNOME Bugzilla – Bug 695065
build: Tell git.mk to ignore generated files
Last modified: 2013-03-04 14:26:50 UTC
After building, many leftover files are still visible with `git status'. To avoid the clutter there should be added to the *CLEANFILES automake variables to make git.mk aware of them.
Created attachment 237884 [details] [review] build: Tell git.mk to ignore generated files
Created attachment 237973 [details] [review] build: Tell git.mk to ignore generated files Thanks for the patch! I made some minor stylistic changes. However, I still get this: [rishi@kolache gnome-online-accounts]$ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # (use "git push" to publish your local commits) # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Calendar.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Chat.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Contacts.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Documents.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Exchange.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Files.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Mail.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Manager.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.OAuth2Based.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.OAuthBased.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.PasswordBased.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Photos.xml # src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Ticketing.xml nothing added to commit but untracked files present (use "git add" to track) [rishi@kolache gnome-online-accounts]$
Created attachment 237981 [details] [review] build: Tell git.mk to ignore generated files Do not expand files to be ignored with $(wildcard) as git happily accepts the shell pattern and the expansion does not work if the files to be ignored aren't already present (ie. on a clean checkout).
Comment on attachment 237981 [details] [review] build: Tell git.mk to ignore generated files Works very well.