[gnote] Refactor versioning in build system



commit 9df7bcff1dc6f1e7ced9a9993668d3ed18f47c44
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Sun Aug 26 16:07:22 2012 +0300

    Refactor versioning in build system
    
    * Specify version only in one place (AC_INIT)
    * Specify libgnote version and release in configure.ac

 configure.ac    |   10 +++++-----
 src/Makefile.am |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 04c7de2..aee69d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,12 +13,12 @@ AC_CONFIG_MACRO_DIR(m4)
 
 m4_pattern_allow([^BOOST_])
 
-MAJOR_VERSION=3
-MINOR_VERSION=5
-MICRO_VERSION=1
-
-GNOTE_VERSION="$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION"
+GNOTE_VERSION="$PACKAGE_VERSION"
 AC_SUBST(GNOTE_VERSION)
+LIBGNOTE_RELEASE=${PACKAGE_VERSION%.*}
+AC_SUBST(LIBGNOTE_RELEASE)
+LIBGNOTE_VERSION_INFO=0:0:0
+AC_SUBST(LIBGNOTE_VERSION_INFO)
 
 
 dnl all the library version.
diff --git a/src/Makefile.am b/src/Makefile.am
index ea49a88..7fb2713 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -64,7 +64,7 @@ DBUS_SOURCES=remotecontrolproxy.hpp remotecontrolproxy.cpp \
 	dbus/remotecontrol-glue.cpp \
 	$(NULL)
 
-libgnote_la_LDFLAGS = -release 3.5 -version-info 0:0:0
+libgnote_la_LDFLAGS = -release @LIBGNOTE_RELEASE@ -version-info @LIBGNOTE_VERSION_INFO@
 libgnote_la_LIBADD = $(LIBGNOTE_LIBS)
 libgnote_la_SOURCES = \
 	base/singleton.hpp \



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