[latexila] build: avoid rebuilding Vala sources



commit 0f79c713b66f521c7827311e0829f2e872ab2e81
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Oct 26 21:10:43 2014 +0100

    build: avoid rebuilding Vala sources
    
    A big thank you to Evan Nemerson:
    https://mail.gnome.org/archives/vala-list/2014-October/msg00021.html

 src/Makefile.am             |    7 ++++---
 src/liblatexila/Makefile.am |    2 ++
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 1946bd3..bdd5b42 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,9 @@ VALAFLAGS =                     \
        --pkg gtkspell3-3.0     \
        --pkg gee-0.8           \
        --pkg posix             \
-       --target-glib=2.40
+       --target-glib=2.40      \
+       --vapidir liblatexila   \
+       --pkg latexila
 
 # The valac command is always executed in the sources directory, not the build
 # directory. If $(top_srcdir) is used, it will be relative to the build directory.
@@ -61,8 +63,7 @@ latexila_SOURCES =                            \
        $(vala_files)                           \
        $(vapidir)/config.vapi                  \
        $(vapidir)/gedit.vapi                   \
-       $(vapidir)/menu_tool_action.vapi        \
-       liblatexila/latexila.vapi
+       $(vapidir)/menu_tool_action.vapi
 
 latexila_CPPFLAGS =                    \
        -I$(top_srcdir)                 \
diff --git a/src/liblatexila/Makefile.am b/src/liblatexila/Makefile.am
index d438b57..430b3ca 100644
--- a/src/liblatexila/Makefile.am
+++ b/src/liblatexila/Makefile.am
@@ -102,6 +102,8 @@ latexila_vapi_FILES = Latexila.gir
 noinst_DATA += latexila.vapi
 CLEANFILES += latexila.vapi
 
+EXTRA_DIST = latexila.vapi
+
 endif # ENABLE_VAPIGEN
 
 -include $(top_srcdir)/git.mk


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