[gitg] Make the dependency on our vapi files explicit



commit 5cbbb2d9a3d0561e519df5d5a73a8b36ee83ecae
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Jul 8 10:27:01 2013 +0200

    Make the dependency on our vapi files explicit
    
    We need to list our own vapi files in BUILT_SOURCES so that at boostrap
    make knows it has to first generate these files and then build the main
    gitg binary.

 gitg/Makefile.am        |    4 ++++
 libgitg-ext/Makefile.am |    1 +
 libgitg/Makefile.am     |    1 +
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index 044c863..ad8aef9 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -54,7 +54,11 @@ VALASOURCES =                                                        \
        commit/gitg-commit-paned.vala                           \
        commit/gitg-commit-dialog.vala
 
+# Explicitely list vapi files of our libs, so that dependencies
+# are properly respected on boostrap
 BUILT_SOURCES =                                                \
+       $(top_builddir)/libgitg/libgitg-1.0.vapi                \
+       $(top_builddir)/libgitg-ext/libgitg-ext-1.0.vapi        \
        gitg-resources.c                                        \
        gitg-resources.h                                        \
        gitg_vala.stamp
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index 4e86312..4c7be90 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -59,6 +59,7 @@ vapidir = $(prefix)/share/vala/vapi
 vapi_DATA = libgitg-ext-1.0.vapi
 
 GitgExt-1.0.gir: libgitg-ext-1.0.la
+libgitg-ext-1.0.vapi: libgitg-ext-1.0.la
 libgitg-ext.h: libgitg-ext-1.0.la
 
 # Ignore all warnings for vala code...
diff --git a/libgitg/Makefile.am b/libgitg/Makefile.am
index 1cac232..89cf963 100644
--- a/libgitg/Makefile.am
+++ b/libgitg/Makefile.am
@@ -35,6 +35,7 @@ AM_VALAFLAGS =                                \
        --gresources "$(top_srcdir)/libgitg/resources/resources.xml"
 
 Gitg-1.0.gir: libgitg-1.0.la
+libgitg-1.0.vapi: libgitg-1.0.la
 libgitg.h: libgitg-1.0.la
 
 VALA_FILES =                                   \


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