[sushi] build: properly clean all generated files on make clean



commit e8c0b918fb94cb261cdbcbda9bbefd73c7b71e46
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 27 17:12:27 2011 -0400

    build: properly clean all generated files on make clean

 Makefile.am           |   13 +++++++++++++
 src/Makefile-js.am    |    1 +
 src/Makefile-sushi.am |    6 ++++++
 src/Makefile.am       |    2 ++
 4 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e9658fd..a17f0a6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,16 @@
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
 SUBDIRS = src po data
+
+EXTRA_DIST = \
+    autogen.sh
+
+stale-files-clean-local:
+	-$(RM) $(abs_top_builddir)/*.la $(abs_top_builddir)/*.gir $(abs_top_builddir)/*.typelib
+
+MAINTAINERCLEANFILES = \
+    INSTALL \
+    aclocal.m4 \
+    config.log \
+    config.status \
+    configure
diff --git a/src/Makefile-js.am b/src/Makefile-js.am
index a08de0f..908abd5 100644
--- a/src/Makefile-js.am
+++ b/src/Makefile-js.am
@@ -38,4 +38,5 @@ CLEANFILES += \
     $(BUILT_SOURCES)
 
 EXTRA_DIST += \
+    js/util/features.js.in \
     js/util/path.js.in
\ No newline at end of file
diff --git a/src/Makefile-sushi.am b/src/Makefile-sushi.am
index 1591313..b9fd42c 100644
--- a/src/Makefile-sushi.am
+++ b/src/Makefile-sushi.am
@@ -60,6 +60,12 @@ libsushi_1_0_la_SOURCES = \
     $(sushi_source_c) \
     $(sushi_built_sources)
 
+CLEANFILES += $(SUSHI_STAMP_FILES) $(BUILT_SOURCES)
+
+EXTRA_DIST += \
+    libsushi/sushi-enum-types.h.in \
+    libsushi/sushi-enum-types.c.in
+
 INTROSPECTION_GIRS += Sushi-1.0.gir
 
 Sushi-1.0.gir: libsushi-1.0.la Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 5f6bf52..3683789 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,6 +39,8 @@ include Makefile-sushi.am
 gir_DATA += $(INTROSPECTION_GIRS)
 typelib_DATA += $(gir_DATA:.gir=.typelib)
 
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
+
 libexec_PROGRAMS = sushi-start
 
 sushi_start_SOURCES = main.c



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