[gspell] gspell-app: suffix gspell API version to the binary name



commit e49286d2c7678799436f9ad6c7cc1c07c2b1df7b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 3 09:31:51 2017 +0200

    gspell-app: suffix gspell API version to the binary name
    
    Ideally there should be only one gspell-app binary that uses the latest
    version of the gspell library. But to achieve that, I think the only way
    is to create another git repository for gspell-app. But I don't want to
    duplicate all the build system boilerplate and the resulting maintenance
    of having another git repo to take care of. So I prefer to keep
    gspell-app in the gspell repo.
    
    When gspell 2 will be released, its gspell-app must not conflict with
    the gspell 1 one. So this commit adds the API version (which is also the
    major package version) as a suffix: gspell-app1, gspell-app2, etc.
    
    gspell-app1, gspell-app2, etc will also permit to test different
    versions of gspell (useful when reporting a bug), although the UI tests
    in tests/ are more complete (but not installed).

 gspell-app/Makefile.am |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gspell-app/Makefile.am b/gspell-app/Makefile.am
index 1669e65..7802294 100644
--- a/gspell-app/Makefile.am
+++ b/gspell-app/Makefile.am
@@ -1,22 +1,22 @@
-bin_PROGRAMS = gspell-app
+bin_PROGRAMS = gspell-app@GSPELL_API_VERSION@
 
-gspell_app_SOURCES =   \
+gspell_app@GSPELL_API_VERSION@_SOURCES =       \
        gspell-app.c
 
-gspell_app_CPPFLAGS =                          \
+gspell_app@GSPELL_API_VERSION@_CPPFLAGS =      \
        -DG_LOG_DOMAIN=\"gspell-app\"           \
        -DGSPELL_DATADIR=\""$(datadir)"\"       \
        -I$(top_srcdir)                         \
        -I$(top_builddir)
 
-gspell_app_CFLAGS =    \
+gspell_app@GSPELL_API_VERSION@_CFLAGS =        \
        $(WARN_CFLAGS)  \
        $(DEP_CFLAGS)
 
-gspell_app_LDFLAGS =   \
+gspell_app@GSPELL_API_VERSION@_LDFLAGS = \
        $(WARN_LDFLAGS)
 
-gspell_app_LDADD =                                                     \
+gspell_app@GSPELL_API_VERSION@_LDADD =                                 \
        $(top_builddir)/gspell/libgspell-@GSPELL_API_VERSION@.la        \
        $(DEP_LIBS)
 


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