Eo: more dos2unix
[profile/ivi/eobj.git] / Makefile.am
1
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS = src doc
5
6 MAINTAINERCLEANFILES = \
7 Makefile.in \
8 aclocal.m4 \
9 config.cache-env \
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 = eo.pc
31
32 EXTRA_DIST = \
33 AUTHORS \
34 COPYING \
35 README \
36 autogen.sh \
37 eo.pc.in \
38 m4/efl_benchmark.m4 \
39 m4/efl_doxygen.m4 \
40 m4/efl_examples.m4 \
41 m4/efl_tests.m4
42
43 .PHONY: doc benchmark
44
45 # Documentation
46
47 doc:
48         @echo "entering doc/"
49         @cd doc && $(MAKE) doc
50
51 # Unit tests
52
53 if EFL_ENABLE_TESTS
54
55
56 lcov-reset:
57         @rm -rf $(top_builddir)/coverage
58         @find $(top_builddir) -name "*.gcda" -delete
59         @lcov --zerocounters --directory $(top_builddir)
60
61 lcov-report:
62         @mkdir $(top_builddir)/coverage
63         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
64         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
65         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
66         @echo "Coverage Report at $(top_builddir)/coverage/html"
67
68 check-local:
69 if EFL_ENABLE_COVERAGE
70         @$(MAKE) lcov-reset
71 endif
72         @./src/tests/eo_suite/eo_suite
73 if EFL_ENABLE_COVERAGE
74         @$(MAKE) lcov-report
75 endif
76
77 else
78
79 lcov-reset:
80         @echo "reconfigure with --enable-tests"
81
82 lcov-report:
83         @echo "reconfigure with --enable-tests"
84
85 check-local:
86         @echo "reconfigure with --enable-tests"
87
88 endif
89
90 if EFL_ENABLE_BENCHMARK
91
92 benchmark:
93         @cd src && $(MAKE) benchmark
94         @mkdir result || true
95         @cd result && ../src/tests/eo_bench `date +%F_%s`
96
97 else
98
99 benchmark:
100         @echo "reconfigure with --enable-benchmark"
101 endif
102
103 clean-local:
104         @rm -rf coverage benchmark