[gtksourceview: 9/9] build: do not hardcode API version for tests



commit 7fce3540ad81003ed200bafaeb319c8967736560
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Oct 19 19:56:31 2016 +0200

    build: do not hardcode API version for tests
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773174

 tests/Makefile.am     |    2 +-
 testsuite/Makefile.am |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 21a34e5..de34129 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -11,7 +11,7 @@ AM_CPPFLAGS =                                 \
 
 AM_LDFLAGS = $(WARN_LDFLAGS)
 
-LDADD = $(top_builddir)/gtksourceview/libgtksourceview-3.0.la \
+LDADD = $(top_builddir)/gtksourceview/libgtksourceview-@GSV_API_VERSION@.la \
        -lm \
        $(DEP_LIBS) \
        $(TESTS_LIBS)
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index b918e3a..d082a90 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -105,15 +105,15 @@ EXTRA_DIST =                              \
        styles/test.xml
 
 if INSTALLED_TESTS
-insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)-3.0
+insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)-@GSV_API_VERSION@
 insttest_PROGRAMS = $(UNIT_TEST_PROGS)
 
-insttestlangdir = $(libexecdir)/installed-tests/$(PACKAGE)-3.0/language-specs
+insttestlangdir = $(libexecdir)/installed-tests/$(PACKAGE)-@GSV_API_VERSION@/language-specs
 insttestlang_DATA =                    \
        language-specs/test-empty.lang  \
        language-specs/test-full.lang
 
-instteststyledir = $(libexecdir)/installed-tests/$(PACKAGE)-3.0/styles
+instteststyledir = $(libexecdir)/installed-tests/$(PACKAGE)-@GSV_API_VERSION@/styles
 instteststyle_DATA =                   \
        styles/classic.xml              \
        styles/test.xml
@@ -130,7 +130,7 @@ test_files = $(UNIT_TEST_PROGS:=.test)
 
 DISTCLEANFILES = $(test_files)
 
-testmetadir = $(datadir)/installed-tests/$(PACKAGE)-3.0
+testmetadir = $(datadir)/installed-tests/$(PACKAGE)-@GSV_API_VERSION@
 testmeta_DATA = $(test_files)
 
 endif # INSTALLED_TESTS


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