Imported Upstream version 1.7.8
[platform/upstream/edje.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = data src utils 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 ### this is all fine and great - but edje should not be going and installing
28 ### data in another software's data dir - it's just wrong. not to mention this
29 ### also breaks make distcheck...
30 #       if test "x${vimdir}" != "x"; then \
31 #         $(mkinstalldirs) $(DESTDIR)$(vimdir)/syntax; \
32 #         cp -p $(srcdir)/data/edc.vim $(DESTDIR)$(vimdir)/syntax/; \
33 #       fi
34
35 bin_SCRIPTS = 
36
37 EXTRA_DIST = \
38 AUTHORS \
39 COPYING \
40 autogen.sh \
41 edje.pc.in \
42 edje.spec \
43 edje.spec.in \
44 README
45
46 pkgconfigdir = $(libdir)/pkgconfig
47 pkgconfig_DATA = edje.pc
48
49 .PHONY: doc install-doc coverage
50
51 # Documentation
52
53 doc:
54         @echo "entering doc/"
55         make -C doc doc
56
57 install-doc:
58         @echo "entering doc/"
59         make -C doc install-doc
60
61 # Unit tests
62
63 if EFL_ENABLE_TESTS
64
65 check-local:
66         @./src/tests/edje_suite
67
68 else
69
70 check-local:
71         @echo "reconfigure with --enable-tests"
72
73 endif
74
75 # Coverage report
76
77 if EFL_ENABLE_COVERAGE
78 lcov-reset:
79         @rm -rf $(top_builddir)/coverage
80         @find $(top_builddir) -name "*.gcda" -delete
81         @lcov --zerocounters --directory $(top_builddir)
82
83 lcov-report:
84         @mkdir $(top_builddir)/coverage
85         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
86         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
87         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
88         @echo "Coverage Report at $(top_builddir)/coverage/html"
89
90 coverage:
91         @$(MAKE) lcov-reset
92         @$(MAKE) check
93         @$(MAKE) lcov-report
94 else
95 lcov-reset:
96         @echo "reconfigure with --enable-coverage"
97
98 lcov-report:
99         @echo "reconfigure with --enable-coverage"
100
101 coverage:
102         @echo "reconfigure with --enable-tests --enable-coverage"
103 endif