diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/Makefile.am | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/libraries/eina/Makefile.am b/libraries/eina/Makefile.am new file mode 100644 index 0000000..a818b10 --- /dev/null +++ b/libraries/eina/Makefile.am | |||
@@ -0,0 +1,122 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | ||
2 | |||
3 | ACLOCAL_AMFLAGS = -I m4 | ||
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/efl_attribute.m4 \ | ||
42 | m4/efl_benchmark.m4 \ | ||
43 | m4/efl_compiler_flag.m4 \ | ||
44 | m4/efl_coverage.m4 \ | ||
45 | m4/efl_cpu.m4 \ | ||
46 | m4/efl_doxygen.m4 \ | ||
47 | m4/efl_fnmatch.m4 \ | ||
48 | m4/efl_tests.m4 \ | ||
49 | m4/efl_threads.m4 \ | ||
50 | m4/eina_bench.m4 \ | ||
51 | m4/eina_check.m4 \ | ||
52 | m4/efl_path_max.m4 | ||
53 | |||
54 | .PHONY: doc coverage benchmark | ||
55 | |||
56 | # Documentation | ||
57 | |||
58 | doc: | ||
59 | @echo "entering doc/" | ||
60 | @cd doc && make doc | ||
61 | |||
62 | # Unit tests | ||
63 | |||
64 | if EFL_ENABLE_TESTS | ||
65 | |||
66 | check-local: | ||
67 | @./src/tests/eina_suite | ||
68 | |||
69 | else | ||
70 | |||
71 | check-local: | ||
72 | @echo "reconfigure with --enable-tests" | ||
73 | |||
74 | endif | ||
75 | |||
76 | # Coverage report | ||
77 | |||
78 | if EFL_ENABLE_COVERAGE | ||
79 | lcov-reset: | ||
80 | @rm -rf coverage | ||
81 | @find . -name "*.gcda" -exec rm {} \; | ||
82 | @lcov --directory . --zerocounters | ||
83 | |||
84 | lcov-report: | ||
85 | @mkdir coverage | ||
86 | @lcov --compat-libtool --directory $(top_srcdir)/src --capture --output-file coverage/coverage.info | ||
87 | @lcov -l coverage/coverage.info |grep "\\.h" |cut -d " " -f 2 > coverage/remove | ||
88 | @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info | ||
89 | @rm coverage/remove | ||
90 | @mv coverage/coverage.cleaned.info coverage/coverage.info | ||
91 | @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info | ||
92 | |||
93 | coverage: | ||
94 | @make lcov-reset | ||
95 | @make check | ||
96 | @make lcov-report | ||
97 | else | ||
98 | lcov-reset: | ||
99 | @echo "reconfigure with --enable-coverage" | ||
100 | |||
101 | lcov-report: | ||
102 | @echo "reconfigure with --enable-coverage" | ||
103 | |||
104 | coverage: | ||
105 | @echo "reconfigure with --enable-tests --enable-coverage" | ||
106 | endif | ||
107 | |||
108 | if EFL_ENABLE_BENCHMARK | ||
109 | |||
110 | benchmark: | ||
111 | @cd src && make benchmark | ||
112 | @mkdir result || true | ||
113 | @cd result && ../src/tests/eina_bench `date +%F_%s` | ||
114 | |||
115 | else | ||
116 | |||
117 | benchmark: | ||
118 | @echo "reconfigure with --enable-benchmark" | ||
119 | endif | ||
120 | |||
121 | clean-local: | ||
122 | @rm -rf coverage benchmark | ||