just spent waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay too long working on eina_str_s...
[framework/uifw/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_compiler_flag.m4 \
44 m4/common/efl_coverage.m4 \
45 m4/common/efl_cpu.m4 \
46 m4/common/efl_doxygen.m4 \
47 m4/common/efl_fnmatch.m4 \
48 m4/common/efl_shm_open.m4 \
49 m4/common/efl_tests.m4 \
50 m4/common/efl_threads.m4 \
51 m4/common/efl_path_max.m4 \
52 m4/eina/eina_bench.m4 \
53 m4/eina/eina_check.m4
54
55 .PHONY: doc coverage 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 check-local:
68         @./src/tests/eina_suite
69
70 else
71
72 check-local:
73         @echo "reconfigure with --enable-tests"
74
75 endif
76
77 # Coverage report
78
79 if EFL_ENABLE_COVERAGE
80 lcov-reset:
81         @rm -rf $(top_builddir)/coverage
82         @find $(top_builddir) -name "*.gcda" -delete
83         @lcov --zerocounters --directory $(top_builddir)
84
85 lcov-report:
86         @mkdir $(top_builddir)/coverage
87         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
88         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
89         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
90         @echo "Coverage Report at $(top_builddir)/coverage/html"
91
92 coverage:
93         @$(MAKE) lcov-reset
94         @$(MAKE) check
95         @$(MAKE) lcov-report
96 else
97 lcov-reset:
98         @echo "reconfigure with --enable-coverage"
99
100 lcov-report:
101         @echo "reconfigure with --enable-coverage"
102
103 coverage:
104         @echo "reconfigure with --enable-tests --enable-coverage"
105 endif
106
107 if EFL_ENABLE_BENCHMARK
108
109 benchmark:
110         @cd src && $(MAKE) benchmark
111         @mkdir result || true
112         @cd result && ../src/tests/eina_bench `date +%F_%s`
113
114 else
115
116 benchmark:
117         @echo "reconfigure with --enable-benchmark"
118 endif
119
120 clean-local:
121         @rm -rf coverage benchmark