Eo: make benchmark
[profile/ivi/eobj.git] / Makefile.am
1
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS = src doc
5
6 MAINTAINERCLEANFILES = \
7 Makefile.in \
8 aclocal.m4 \
9 config.cache-env \
10 config.guess \
11 config.h.in \
12 config.h.in~ \
13 config.sub \
14 configure \
15 depcomp \
16 install-sh \
17 ltconfig \
18 ltmain.sh \
19 missing \
20 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
21 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
22 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
23 m4/libtool.m4 \
24 m4/lt~obsolete.m4 \
25 m4/ltoptions.m4 \
26 m4/ltsugar.m4 \
27 m4/ltversion.m4
28
29 pkgconfigdir = $(libdir)/pkgconfig
30 pkgconfig_DATA = eo.pc
31
32 EXTRA_DIST = \
33 AUTHORS \
34 COPYING \
35 README \
36 autogen.sh \
37 eo.pc.in \
38 m4/efl_benchmark.m4 \
39 m4/efl_doxygen.m4 \
40 m4/efl_examples.m4 \
41 m4/efl_tests.m4
42
43 .PHONY: doc benchmark
44
45 # Documentation
46
47 doc:
48         @echo "entering doc/"
49         @cd doc && $(MAKE) doc
50
51 # Unit tests
52
53 lcov-reset:
54         @rm -rf $(top_builddir)/coverage
55         @find $(top_builddir) -name "*.gcda" -delete
56         @lcov --zerocounters --directory $(top_builddir)
57
58 lcov-report:
59         @mkdir $(top_builddir)/coverage
60         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
61         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
62         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
63         @echo "Coverage Report at $(top_builddir)/coverage/html"
64
65 check-local:
66 if EFL_ENABLE_COVERAGE
67         @$(MAKE) lcov-reset
68 endif
69         @dirs=`find src/tests -maxdepth 1 -type d \! -name '.*' -printf '%P\n' | sort` ; \
70         for dir in $$dirs ; do \
71           ./src/tests/$$dir/$$dir ; \
72         done
73 if EFL_ENABLE_COVERAGE
74         @$(MAKE) lcov-report
75 endif
76
77 benchmark:
78         @cd src && $(MAKE) benchmark
79         @mkdir result || true
80         @cd result && ../src/benchmarks/eo_bench `date +%F_%s`
81
82 clean-local:
83         @rm -rf coverage benchmark