[gtksourceview] build: make the Makefile.am a bit clearer



commit 5916ea6fd931b96e35dfec239252cd3a613b2179
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Aug 13 15:29:46 2014 +0200

    build: make the Makefile.am a bit clearer
    
    Something like:
    $(INTROSPECTION_GIRS:.gir=.typelib)
    
    is not really clear. Writing "GtkSource-3.0.typelib" is better in my
    opinion. It is true that for GtkSourceView 4 there will be more changes,
    but "3.0", "3_0" etc are already present at lots of places.

 gtksourceview/Makefile.am |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index 729f84c..e25237a 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -214,8 +214,9 @@ stamp-gtksourceview-typebuiltins.h: Makefile.am $(libgtksourceview_headers)
        && rm -f xgen-gth && echo stamp > $(@F)
 
 EXTRA_DIST =                           \
-       gtksourceview.gresource.xml     \
-       gtksourcecompletion.ui
+       GtkSource-3.0.metadata          \
+       gtksourcecompletion.ui          \
+       gtksourceview.gresource.xml
 
 CLEANFILES =                                   \
        $(BUILT_SOURCES)                        \
@@ -253,15 +254,16 @@ GtkSource_3_0_gir_PACKAGES = gtk+-3.0 gdk-3.0
 GtkSource_3_0_gir_EXPORT_PACKAGES = gtksourceview-3.0
 
 girdir = $(datadir)/gir-1.0
-gir_DATA = $(INTROSPECTION_GIRS)
+gir_DATA = GtkSource-3.0.gir
 
 typelibdir = $(libdir)/girepository-1.0
-typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+typelib_DATA = GtkSource-3.0.typelib
 
-CLEANFILES +=                  \
+CLEANFILES +=          \
        $(gir_DATA)     \
        $(typelib_DATA)
-endif
+
+endif # HAVE_INTROSPECTION
 
 if ENABLE_VAPIGEN
 -include $(VAPIGEN_MAKEFILE)
@@ -287,11 +289,12 @@ gtksourceview_3_0_vapi_METADATADIRS = $(srcdir)
 gtksourceview_3_0_vapi_FILES = GtkSource-3.0.gir
 
 vapidir = $(datadir)/vala/vapi
-vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps)
+vapi_DATA =                    \
+       gtksourceview-3.0.vapi  \
+       gtksourceview-3.0.deps
 
-CLEANFILES +=  $(vapi_DATA)
-endif
+CLEANFILES += $(vapi_DATA)
 
-EXTRA_DIST += GtkSource-3.0.metadata
+endif # ENABLE_VAPIGEN
 
 -include $(top_srcdir)/git.mk


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