Package Upload
[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_doxygen.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
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 lcov-reset:
59         @rm -rf $(top_builddir)/coverage
60         @find $(top_builddir) -name "*.gcda" -delete
61         @lcov --zerocounters --directory $(top_builddir)
62
63 lcov-report:
64         @mkdir $(top_builddir)/coverage
65         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
66         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
67         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
68         @echo "Coverage Report at $(top_builddir)/coverage/html"
69
70 check-local:
71         @$(MAKE) lcov-reset
72         @./src/tests/eet_suite
73         @$(MAKE) lcov-report
74
75 else
76
77 lcov-reset:
78         @echo "reconfigure with --enable-tests"
79
80 lcov-report:
81         @echo "reconfigure with --enable-tests"
82
83 check-local:
84         @echo "reconfigure with --enable-tests"
85
86 endif
87
88 clean-local:
89         @rm -rf coverage