[gnome-online-accounts/gnome-3-8] build: Tell git.mk to ignore generated files



commit 0acd27a5f0427cb60bf672ac1fdc7af1ca86229d
Author: Emanuele Aina <emanuele aina collabora com>
Date:   Mon Mar 4 14:17:14 2013 +0100

    build: Tell git.mk to ignore generated files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695065

 Makefile.am                |   20 ++++++++++++++++++++
 src/goa/Makefile.am        |    8 +++++++-
 src/goabackend/Makefile.am |    6 +++++-
 3 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b4403e6..ddbb4a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,4 +6,24 @@ SUBDIRS = data src doc po
 # introspection and docs doesn't work with src != build
 DISTCHECK_CONFIGURE_FLAGS=--disable-introspection --disable-gtk-doc
 
+MAINTAINERCLEANFILES = \
+       $(srcdir)/INSTALL \
+       $(srcdir)/aclocal.m4 \
+       $(srcdir)/compile \
+       $(srcdir)/config.guess \
+       $(srcdir)/config.h.in \
+       $(srcdir)/config.sub \
+       $(srcdir)/depcomp \
+       $(srcdir)/install-sh \
+       $(srcdir)/ltmain.sh \
+       $(srcdir)/missing \
+       $(srcdir)/mkinstalldirs \
+       $(srcdir)/gtk-doc.make \
+       `find "$(srcdir)" -type f -name Makefile.in -print` \
+       $(NULL)
+
+GITIGNOREFILES = \
+       m4 \
+       $(NULL)
+
 -include $(top_srcdir)/git.mk
diff --git a/src/goa/Makefile.am b/src/goa/Makefile.am
index aacaab1..26d5d71 100644
--- a/src/goa/Makefile.am
+++ b/src/goa/Makefile.am
@@ -152,7 +152,13 @@ endif # HAVE_INTROSPECTION
 
 # ----------------------------------------------------------------------------------------------------
 
+CLEANFILES += \
+       $(dbus_built_sources) \
+       $(enum_built_sources) \
+       goa-generated-doc-*.xml \
+       $(NULL)
+
 clean-local :
-       rm -f *~ goa-generated-doc-*.xml $(dbus_built_sources) $(enum_built_sources)
+       rm -f *~
 
 -include $(top_srcdir)/git.mk
diff --git a/src/goabackend/Makefile.am b/src/goabackend/Makefile.am
index 93185c0..e7736bb 100644
--- a/src/goabackend/Makefile.am
+++ b/src/goabackend/Makefile.am
@@ -127,7 +127,11 @@ pkgconfig_DATA = goa-backend-1.0.pc
 
 # ----------------------------------------------------------------------------------------------------
 
+CLEANFILES += \
+       $(enum_built_sources) \
+       $(NULL)
+
 clean-local :
-       rm -f *~ $(enum_built_sources)
+       rm -f *~
 
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]