summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 23:01:41 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 23:01:41 -0600
commit8ae2fb87211b2c1a0159480ea6908db2afa20189 (patch)
tree9a20711c1be681b5d016d2420f91aec9531d5196 /tools
parent7b12b3041dccfb082949a5f1fdbd83396aae4f26 (diff)
downloadfork-ledger-8ae2fb87211b2c1a0159480ea6908db2afa20189.tar.gz
fork-ledger-8ae2fb87211b2c1a0159480ea6908db2afa20189.tar.bz2
fork-ledger-8ae2fb87211b2c1a0159480ea6908db2afa20189.zip
Add support for valuation expressions on commodities
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am41
1 files changed, 12 insertions, 29 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 671db294..a598966a 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -8,7 +8,6 @@ DISTCLEANFILES = .timestamp
lib_LTLIBRARIES = \
libledger_report.la \
libledger_data.la \
- libledger_expr.la \
libledger_math.la \
libledger_util.la
@@ -28,6 +27,14 @@ libledger_util_la_CPPFLAGS = $(lib_cppflags)
libledger_util_la_LDFLAGS = -release $(LIBVERSION)
libledger_math_la_SOURCES = \
+ src/format.cc \
+ src/query.cc \
+ src/scope.cc \
+ src/expr.cc \
+ src/op.cc \
+ src/parser.cc \
+ src/token.cc \
+ src/value.cc \
src/balance.cc \
src/quotes.cc \
src/history.cc \
@@ -39,22 +46,8 @@ libledger_math_la_SOURCES = \
libledger_math_la_CPPFLAGS = $(lib_cppflags)
libledger_math_la_LDFLAGS = -release $(LIBVERSION)
-libledger_expr_la_SOURCES = \
- src/option.cc \
- src/format.cc \
- src/query.cc \
- src/predicate.cc \
- src/scope.cc \
- src/expr.cc \
- src/op.cc \
- src/parser.cc \
- src/token.cc \
- src/value.cc
-
-libledger_expr_la_CPPFLAGS = $(lib_cppflags)
-libledger_expr_la_LDFLAGS = -release $(LIBVERSION)
-
libledger_data_la_SOURCES = \
+ src/option.cc \
src/lookup.cc \
src/compare.cc \
src/iterators.cc \
@@ -204,7 +197,6 @@ DISTCLEANFILES += ledger.elc timeclock.elc
all_sources = $(libledger_util_la_SOURCES) \
$(libledger_math_la_SOURCES) \
- $(libledger_expr_la_SOURCES) \
$(libledger_data_la_SOURCES) \
$(libledger_report_la_SOURCES) \
$(libledger_python_la_SOURCES) \
@@ -259,8 +251,7 @@ TESTS = RegressTests BaselineTests ManualTests ConfirmTests \
if HAVE_BOOST_TEST
TESTS += \
UtilTests \
- MathTests \
- ExprTests
+ MathTests
# DataTests \
# ReportTests
endif
@@ -285,6 +276,7 @@ UtilTests_CPPFLAGS = -I$(srcdir)/test $(lib_cppflags)
UtilTests_LDADD = libledger_util.la $(TESTLIBS)
MathTests_SOURCES = \
+ test/unit/t_expr.cc \
test/unit/t_commodity.cc \
test/unit/t_amount.cc \
test/unit/t_balance.cc
@@ -292,16 +284,10 @@ MathTests_SOURCES = \
MathTests_CPPFLAGS = -I$(srcdir)/test $(lib_cppflags)
MathTests_LDADD = libledger_math.la $(UtilTests_LDADD)
-ExprTests_SOURCES = \
- test/unit/t_expr.cc
-
-ExprTests_CPPFLAGS = -I$(srcdir)/test $(lib_cppflags)
-ExprTests_LDADD = libledger_expr.la $(MathTests_LDADD)
-
DataTests_SOURCES =
DataTests_CPPFLAGS = -I$(srcdir)/test $(lib_cppflags)
-DataTests_LDADD = libledger_data.la $(ExprTests_LDADD)
+DataTests_LDADD = libledger_data.la $(MathTests_LDADD)
ReportTests_SOURCES =
@@ -311,7 +297,6 @@ ReportTests_LDADD = libledger_report.la $(DataTests_LDADD)
all_tests_sources = \
$(UtilTests_SOURCES) \
$(MathTests_SOURCES) \
- $(ExprTests_SOURCES) \
$(DataTests_SOURCES) \
$(ReportTests_SOURCES)
@@ -421,8 +406,6 @@ unittests: check
2>&1 | grep -v '^GuardMalloc:'
@sh $(FULLCHECK) $(top_builddir)/MathTests$(EXEEXT) --verify \
2>&1 | grep -v '^GuardMalloc:'
- @sh $(FULLCHECK) $(top_builddir)/ExprTests$(EXEEXT) --verify \
- 2>&1 | grep -v '^GuardMalloc:'
# @sh $(FULLCHECK) $(top_builddir)/DataTests$(EXEEXT) --verify \
# 2>&1 | grep -v '^GuardMalloc:'
# @sh $(FULLCHECK) $(top_builddir)/ReportTests$(EXEEXT) --verify \