Eet: add nice m4 macros to check functions and libraries. Will be usable easily in...
[framework/uifw/eet.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src doc
4
5 MAINTAINERCLEANFILES = \
6 Makefile.in \
7 aclocal.m4 \
8 compile \
9 config.guess \
10 config.h.in \
11 config.h.in~ \
12 config.sub \
13 configure \
14 depcomp \
15 install-sh \
16 ltmain.sh \
17 missing \
18 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
19 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
20 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
21 m4/libtool.m4 \
22 m4/lt~obsolete.m4 \
23 m4/ltoptions.m4 \
24 m4/ltsugar.m4 \
25 m4/ltversion.m4
26
27 EXTRA_DIST = \
28 AUTHORS \
29 COPYING \
30 autogen.sh \
31 eet.pc.in \
32 eet.spec.in \
33 eet.spec \
34 m4/ac_attribute.m4 \
35 m4/ac_path_generic.m4 \
36 m4/efl_binary.m4 \
37 m4/efl_check_funcs.m4 \
38 m4/efl_check_libs.m4 \
39 m4/efl_coverage.m4 \
40 m4/efl_doxygen.m4 \
41 m4/efl_tests.m4 \
42 m4/efl_path_max.m4
43
44 pkgconfigdir = $(libdir)/pkgconfig
45 pkgconfig_DATA = eet.pc
46
47 .PHONY: doc coverage
48
49 # Documentation
50
51 doc:
52         @echo "entering doc/"
53         $(MAKE) -C doc doc
54
55 # Unit tests
56
57 if EFL_ENABLE_TESTS
58
59 check-local:
60         @./src/tests/eet_suite
61
62 else
63
64 check-local:
65         @echo "reconfigure with --enable-tests"
66
67 endif
68
69 # Coverage report
70
71 if EFL_ENABLE_COVERAGE
72 lcov-reset:
73         @rm -rf $(top_builddir)/coverage
74         @find $(top_builddir) -name "*.gcda" -delete
75         @lcov --zerocounters --directory $(top_builddir)
76
77 lcov-report:
78         @mkdir $(top_builddir)/coverage
79         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
80         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
81         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
82         @echo "Coverage Report at $(top_builddir)/coverage/html"
83
84 coverage:
85         @$(MAKE) lcov-reset
86         @$(MAKE) check
87         @$(MAKE) lcov-report
88
89 clean-local:
90         @rm -rf coverage
91 else
92 lcov-reset:
93         @echo "reconfigure with --enable-coverage"
94
95 lcov-report:
96         @echo "reconfigure with --enable-coverage"
97
98 coverage:
99         @echo "reconfigure with --enable-tests --enable-coverage"
100 endif