forked from mrtazz/plustache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
42 lines (30 loc) · 1.67 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ACLOCAL_AMFLAGS=-I m4
AM_CPPFLAGS = -I$(top_srcdir)/include
LDFLAGS=-lboost_regex-mt
pkginclude_HEADERS = include/plustache/template.hpp include/plustache/context.hpp include/plustache/plustache_types.hpp include/plustache/version.h
check_PROGRAMS = test-program
test_program_CPPFLAGS=-Ivendor/gtest-1.7.0/include -I$(top_srcdir)/include
test_program_LDFLAGS=-Lvendor/gtest-1.7.0/lib/.libs -lgtest -lboost_regex-mt
test_program_SOURCES = tests/test_change_delimiter.cpp tests/test_collections_plustache.cpp tests/test_html_escape_plustache.cpp tests/test_inverted_sections.cpp tests/test_multiple_plustache.cpp tests/test_nested_sections_plustache.cpp tests/test_partials_plustache.cpp tests/test_sections_plustache.cpp tests/test_simple_plustache.cpp tests/tests.cpp
test_program_LDADD = .libs/libplustache.a
lib_LTLIBRARIES=libplustache.la
libplustache_la_SOURCES=src/template.cpp src/context.cpp
libplustache_la_CXXFLAGS=-fPIC
libplustache_la_LDFLAGS=-version-info 2:1:1
.PHONY: test check clean-coverage-files coverage-html valgrind ci
test: check
./test-program
clean-local:
find . -name "*.gcda" -print0 | xargs -0 rm
coverage.info: test
lcov --compat-libtool --capture --directory src --output-file coverage.info
lcov --compat-libtool --remove coverage.info "/usr*" -o coverage.info
coverage-html: coverage.info
genhtml -t "plustache coverage report" --legend --show-details coverage.info --output-directory html
include/plustache/version.h:
m4 -I m4 -DM4_PLUSTACHE_VERSION=$(VERSION) version.h.m4 > $@
valgrind: check
valgrind --leak-check=full --error-exitcode=0 ./test-program
ci: test valgrind
# include other make targets in the main Makefile
include $(srcdir)/Makefile.packaging.mk