summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-15 04:24:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-15 04:26:42 -0400
commitd2b333881fc40e713a34d34b79ff66f5aaf3d027 (patch)
treef0a3c2619df22aa817ce4628113217136a1e80e1 /tools
parentfa263e729c65e073950a15db11c149ebacba0937 (diff)
downloadfork-ledger-d2b333881fc40e713a34d34b79ff66f5aaf3d027.tar.gz
fork-ledger-d2b333881fc40e713a34d34b79ff66f5aaf3d027.tar.bz2
fork-ledger-d2b333881fc40e713a34d34b79ff66f5aaf3d027.zip
Version information is now based on version.m4
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am12
-rw-r--r--tools/excludes1
2 files changed, 6 insertions, 7 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 5a6e2fdc..1ca0a6a7 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,4 +1,4 @@
-VERSION = 3.0.0
+LIBVERSION = $(shell echo $(PACKAGE_VERSION) | sed 's/[-abgrc].*//')
ACLOCAL_AMFLAGS = -I m4
dist_man_MANS = doc/ledger.1
SUBDIRS = po intl
@@ -25,7 +25,7 @@ libledger_util_la_SOURCES = \
lib/sha1.cpp
libledger_util_la_CPPFLAGS = $(lib_cppflags)
-libledger_util_la_LDFLAGS = -release $(VERSION)
+libledger_util_la_LDFLAGS = -release $(LIBVERSION)
libledger_math_la_SOURCES = \
src/balance.cc \
@@ -36,7 +36,7 @@ libledger_math_la_SOURCES = \
src/amount.cc
libledger_math_la_CPPFLAGS = $(lib_cppflags)
-libledger_math_la_LDFLAGS = -release $(VERSION)
+libledger_math_la_LDFLAGS = -release $(LIBVERSION)
libledger_expr_la_SOURCES = \
src/option.cc \
@@ -51,7 +51,7 @@ libledger_expr_la_SOURCES = \
src/value.cc
libledger_expr_la_CPPFLAGS = $(lib_cppflags)
-libledger_expr_la_LDFLAGS = -release $(VERSION)
+libledger_expr_la_LDFLAGS = -release $(LIBVERSION)
libledger_data_la_SOURCES = \
src/lookup.cc \
@@ -68,7 +68,7 @@ libledger_data_la_SOURCES = \
src/item.cc
libledger_data_la_CPPFLAGS = $(lib_cppflags)
-libledger_data_la_LDFLAGS = -release $(VERSION)
+libledger_data_la_LDFLAGS = -release $(LIBVERSION)
libledger_report_la_SOURCES = \
src/stats.cc \
@@ -87,7 +87,7 @@ libledger_report_la_SOURCES = \
src/session.cc
libledger_report_la_CPPFLAGS = $(lib_cppflags)
-libledger_report_la_LDFLAGS = -release $(VERSION)
+libledger_report_la_LDFLAGS = -release $(LIBVERSION)
pkginclude_HEADERS = \
src/utils.h \
diff --git a/tools/excludes b/tools/excludes
index dc56eacc..d914099f 100644
--- a/tools/excludes
+++ b/tools/excludes
@@ -44,4 +44,3 @@ src/system.hh.gch
stamp-h1
texinfo.tex
util_tests
-version.m4