Update tp 1.7.4
[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 install-doc benchmark
56
57 # Documentation
58
59 doc:
60         @echo "entering doc/"
61         @$(MAKE) -C doc doc
62
63 install-doc:
64         @echo "entering doc/"
65         @$(MAKE) -C doc install-doc
66
67 # Unit tests
68
69 if EFL_ENABLE_TESTS
70
71 lcov-reset:
72         @rm -rf $(top_builddir)/coverage
73         @find $(top_builddir) -name "*.gcda" -delete
74         @lcov --zerocounters --directory $(top_builddir)
75
76 lcov-report:
77         @mkdir $(top_builddir)/coverage
78         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
79         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
80         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
81         @echo "Coverage Report at $(top_builddir)/coverage/html"
82
83 check-local:
84         @$(MAKE) lcov-reset
85         @./src/tests/eina_suite
86         @$(MAKE) lcov-report
87
88 else
89
90 lcov-reset:
91         @echo "reconfigure with --enable-tests"
92
93 lcov-report:
94         @echo "reconfigure with --enable-tests"
95
96 check-local:
97         @echo "reconfigure with --enable-tests"
98
99 endif
100
101 if EFL_ENABLE_BENCHMARK
102
103 benchmark:
104         @cd src && $(MAKE) benchmark
105         @mkdir result || true
106         @cd result && ../src/tests/eina_bench `date +%F_%s`
107
108 else
109
110 benchmark:
111         @echo "reconfigure with --enable-benchmark"
112 endif
113
114 clean-local:
115         @rm -rf coverage benchmark