d3622dca5f99d5b8bf9307b836546d67a42958a3
[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_coverage.m4 \
38 m4/efl_doxygen.m4 \
39 m4/efl_fnmatch.m4 \
40 m4/efl_tests.m4 \
41 m4/efl_path_max.m4
42
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = eet.pc
45
46 .PHONY: doc coverage
47
48 # Documentation
49
50 doc:
51         @echo "entering doc/"
52         $(MAKE) -C doc doc
53
54 # Unit tests
55
56 if EFL_ENABLE_TESTS
57
58 check-local:
59         @./src/tests/eet_suite
60
61 else
62
63 check-local:
64         @echo "reconfigure with --enable-tests"
65
66 endif
67
68 # Coverage report
69
70 if EFL_ENABLE_COVERAGE
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 coverage:
84         @$(MAKE) lcov-reset
85         @$(MAKE) check
86         @$(MAKE) lcov-report
87
88 clean-local:
89         @rm -rf coverage
90 else
91 lcov-reset:
92         @echo "reconfigure with --enable-coverage"
93
94 lcov-report:
95         @echo "reconfigure with --enable-coverage"
96
97 coverage:
98         @echo "reconfigure with --enable-tests --enable-coverage"
99 endif