Imported Upstream version 1.7.1
[platform/upstream/eina.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ACLOCAL_AMFLAGS = -I m4 -I m4/common -I m4/eina
4
5 SUBDIRS = src doc
6
7 MAINTAINERCLEANFILES = \
8 Makefile.in \
9 aclocal.m4 \
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 = eina.pc
31
32 EXTRA_DIST = \
33 AUTHORS \
34 COPYING \
35 README \
36 $(pkgconfig_DATA) \
37 autogen.sh \
38 eina.pc.in \
39 eina.spec \
40 eina.spec.in \
41 m4/common/efl_attribute.m4 \
42 m4/common/efl_benchmark.m4 \
43 m4/common/efl_check_funcs.m4 \
44 m4/common/efl_compiler_flag.m4 \
45 m4/common/efl_cpu.m4 \
46 m4/common/efl_doxygen.m4 \
47 m4/common/efl_examples.m4 \
48 m4/common/efl_path_max.m4 \
49 m4/common/efl_tests.m4 \
50 m4/common/efl_threads.m4 \
51 m4/common/efl_voltron.m4 \
52 m4/eina/eina_bench.m4 \
53 m4/eina/eina_check.m4
54
55 .PHONY: doc benchmark
56
57 # Documentation
58
59 doc:
60         @echo "entering doc/"
61         @cd doc && $(MAKE) doc
62
63 # Unit tests
64
65 if EFL_ENABLE_TESTS
66
67 lcov-reset:
68         @rm -rf $(top_builddir)/coverage
69         @find $(top_builddir) -name "*.gcda" -delete
70         @lcov --zerocounters --directory $(top_builddir)
71
72 lcov-report:
73         @mkdir $(top_builddir)/coverage
74         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
75         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
76         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
77         @echo "Coverage Report at $(top_builddir)/coverage/html"
78
79 check-local:
80         @$(MAKE) lcov-reset
81         @./src/tests/eina_suite
82         @$(MAKE) lcov-report
83
84 else
85
86 lcov-reset:
87         @echo "reconfigure with --enable-tests"
88
89 lcov-report:
90         @echo "reconfigure with --enable-tests"
91
92 check-local:
93         @echo "reconfigure with --enable-tests"
94
95 endif
96
97 if EFL_ENABLE_BENCHMARK
98
99 benchmark:
100         @cd src && $(MAKE) benchmark
101         @mkdir result || true
102         @cd result && ../src/tests/eina_bench `date +%F_%s`
103
104 else
105
106 benchmark:
107         @echo "reconfigure with --enable-benchmark"
108 endif
109
110 clean-local:
111         @rm -rf coverage benchmark