diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/eet/Makefile.am | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/libraries/eet/Makefile.am b/libraries/eet/Makefile.am new file mode 100644 index 0000000..bc6e99a --- /dev/null +++ b/libraries/eet/Makefile.am | |||
@@ -0,0 +1,101 @@ | |||
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 coverage | ||
73 | @find . -name "*.gcda" -exec rm {} \; | ||
74 | @lcov --directory . --zerocounters | ||
75 | |||
76 | lcov-report: | ||
77 | @mkdir coverage | ||
78 | @lcov --compat-libtool --directory . --capture --output-file coverage/coverage.info | ||
79 | @lcov -l coverage/coverage.info |grep "\\.h" |cut -d " " -f 2 > coverage/remove | ||
80 | @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info | ||
81 | @rm coverage/remove | ||
82 | @mv coverage/coverage.cleaned.info coverage/coverage.info | ||
83 | @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info | ||
84 | |||
85 | coverage: | ||
86 | @make lcov-reset | ||
87 | @make check | ||
88 | @make lcov-report | ||
89 | |||
90 | clean-local: | ||
91 | @rm -rf coverage | ||
92 | else | ||
93 | lcov-reset: | ||
94 | @echo "reconfigure with --enable-coverage" | ||
95 | |||
96 | lcov-report: | ||
97 | @echo "reconfigure with --enable-coverage" | ||
98 | |||
99 | coverage: | ||
100 | @echo "reconfigure with --enable-tests --enable-coverage" | ||
101 | endif | ||