[tracker/tracker-0.10] libtracker-sparql: Fix header filename in generated vapi



commit 371589a478bced1b825342a5767556612360bd50
Author: Jürg Billeter <j bitron ch>
Date:   Thu Apr 7 14:50:06 2011 +0200

    libtracker-sparql: Fix header filename in generated vapi

 src/libtracker-sparql/Makefile.am |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/Makefile.am b/src/libtracker-sparql/Makefile.am
index ebd4f81..8b41f40 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -7,7 +7,7 @@ AM_VALAFLAGS =                                         \
 	--library Tracker-$(TRACKER_API_VERSION) \
 	--includedir=libtracker-sparql                 \
 	--header $(vala_header:.h=-no-checks.h)        \
-	--vapi tracker-sparql-$(TRACKER_API_VERSION).vapi \
+	--vapi tracker-sparql.vapi                     \
 	--pkg gio-2.0 --pkg gmodule-2.0 --pkg posix    \
 	$(BUILD_VALAFLAGS)                             \
 	$(top_srcdir)/src/vapi/glib-2.0-fixes.vapi
@@ -43,6 +43,9 @@ vala_header = tracker-generated.h
 	            echo "#endif") > $@
 	$(AM_V_GEN)(cat $< >> $@)
 
+tracker-sparql-$(TRACKER_API_VERSION).vapi: $(srcdir)/tracker-sparql.vapi
+	$(AM_V_GEN)(sed -e 's/tracker-generated-no-checks.h/tracker-sparql.h/' $< > $@)
+
 libtracker_sparqlinclude_HEADERS =                     \
 	$(vala_header)                                 \
 	tracker-sparql.h                               \
@@ -65,8 +68,10 @@ MAINTAINERCLEANFILES =                                 \
 	tracker-sparql-$(TRACKER_API_VERSION).deps     \
 	$(vala_header:.h=-no-checks.h)
 
+CLEANFILES =                                           \
+	tracker-sparql-$(TRACKER_API_VERSION).vapi
+
 EXTRA_DIST =                                           \
-	tracker-sparql-$(TRACKER_API_VERSION).vapi     \
 	tracker-sparql-$(TRACKER_API_VERSION).deps     \
 	tracker-sparql.deps                            \
 	$(vala_header:.h=-no-checks.h)



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