[tracker] Fix clean rules for Vala parts



commit c7f7795b373e425600780bb715c079d1095e9bc4
Author: Jürg Billeter <j bitron ch>
Date:   Fri Sep 25 18:07:30 2009 +0200

    Fix clean rules for Vala parts

 src/libtracker-common/Makefile.am   |    8 +++++++-
 src/libtracker-data/Makefile.am     |    6 ++++++
 src/tracker-explorer/Makefile.am    |    3 +--
 src/tracker-preferences/Makefile.am |    9 +++++++--
 src/tracker-search-tool/Makefile.am |    3 +--
 5 files changed, 22 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-common/Makefile.am b/src/libtracker-common/Makefile.am
index 2b5f89c..bb66499 100644
--- a/src/libtracker-common/Makefile.am
+++ b/src/libtracker-common/Makefile.am
@@ -135,7 +135,13 @@ BUILT_SOURCES =						\
 	$(marshal_sources)				\
 	libtracker-common.vala.stamp
 
-CLEANFILES = $(BUILT_SOURCES)
+CLEANFILES = $(marshal_sources)
+
+MAINTAINERCLEANFILES =					\
+	libtracker-common.vala.stamp			\
+	$(libtracker_common_la_VALASOURCES:.vala=.c)	\
+	tracker-sparql-builder.h			\
+	$(NULL)
 
 EXTRA_DIST = 						\
 	tracker-marshal.list				\
diff --git a/src/libtracker-data/Makefile.am b/src/libtracker-data/Makefile.am
index 2864455..a2b2ce5 100644
--- a/src/libtracker-data/Makefile.am
+++ b/src/libtracker-data/Makefile.am
@@ -52,6 +52,12 @@ libtracker_data_la_LIBADD = 						\
 	$(GCOV_LIBS)							\
 	-lz
 
+MAINTAINERCLEANFILES =							\
+	libtracker-data.vala.stamp					\
+	$(libtracker_data_la_VALASOURCES:.vala=.c)			\
+	tracker-sparql-query.h					\
+	$(NULL)
+
 EXTRA_DIST = $(libtracker_data_la_VALASOURCES)				\
 	libtracker-data.vala.stamp					\
 	libtracker-data.vapi
diff --git a/src/tracker-explorer/Makefile.am b/src/tracker-explorer/Makefile.am
index 5e1c8e2..433eec3 100644
--- a/src/tracker-explorer/Makefile.am
+++ b/src/tracker-explorer/Makefile.am
@@ -34,15 +34,14 @@ ui_DATA = \
 
 
 EXTRA_DIST = \
-	$(tracker_explorer_SOURCES) \
 	$(tracker_explorer_VALASOURCES) \
 	tracker_explorer.vala.stamp \
 	explorer.ui \
 	$(NULL)
 
 MAINTAINERCLEANFILES = \
-	$(tracker_explorer_SOURCES) \
 	tracker_explorer.vala.stamp \
+	$(tracker_explorer_VALASOURCES:.vala=.c) \
 	$(NULL)
 
 BUILT_SOURCES = \
diff --git a/src/tracker-preferences/Makefile.am b/src/tracker-preferences/Makefile.am
index 1765055..63dd32b 100644
--- a/src/tracker-preferences/Makefile.am
+++ b/src/tracker-preferences/Makefile.am
@@ -45,11 +45,16 @@ tracker_preferences_LDADD = 						\
 	$(GLIB_LIBS)							\
 	$(GMODULE_LIBS)
 
+MAINTAINERCLEANFILES =							\
+	tracker-preferences.vala.stamp					\
+	$(tracker_preferences_VALASOURCES:.vala=.c)			\
+	$(NULL)
+
 EXTRA_DIST = $(pkgdata_DATA) config.vapi tracker-config.vapi tracker-preferences.vala.stamp \
 	$(tracker_preferences_VALASOURCES)
 
 tracker-preferences.vala.stamp: $(tracker_preferences_VALASOURCES)
-	$(VALAC) --pkg gtk+-2.0 --pkg gmodule-2.0 -C $(VALAFLAGS) -H tracker-preferences.h tracker-config.vapi config.vapi $^
+	$(VALAC) --pkg gtk+-2.0 --pkg gmodule-2.0 -C $(VALAFLAGS) tracker-config.vapi config.vapi $^
 	touch $@
 
-CLEANFILES = $(desktop_DATA) tracker-preferences.h tracker-preferences.c tracker-preferences.vala.stamp
+CLEANFILES = $(desktop_DATA)
diff --git a/src/tracker-search-tool/Makefile.am b/src/tracker-search-tool/Makefile.am
index 754efb6..acf5fe4 100644
--- a/src/tracker-search-tool/Makefile.am
+++ b/src/tracker-search-tool/Makefile.am
@@ -50,7 +50,6 @@ icon_DATA = thumbnail_frame.png
 CLEANFILES = $(desktop_DATA)
 
 EXTRA_DIST = \
-	$(tracker_search_tool_SOURCES) \
 	$(tracker_search_tool_VALASOURCES) \
 	$(icon_DATA) \
 	tracker_search_tool.gs.stamp \
@@ -58,8 +57,8 @@ EXTRA_DIST = \
 	$(NULL)
 
 MAINTAINERCLEANFILES = \
-	$(tracker_search_tool_SOURCES) \
 	tracker_search_tool.gs.stamp \
+	$(tracker_search_tool_VALASOURCES:.gs=.c) \
 	$(NULL)
 
 BUILT_SOURCES = \



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