Package Upload
[framework/uifw/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 coverage
50
51 # Documentation
52
53 doc:
54         @echo "entering doc/"
55         make -C doc doc
56
57 # Unit tests
58
59 if EFL_ENABLE_TESTS
60
61 check-local:
62         @./src/tests/edje_suite
63
64 else
65
66 check-local:
67         @echo "reconfigure with --enable-tests"
68
69 endif
70
71 # Coverage report
72
73 if EFL_ENABLE_COVERAGE
74 lcov-reset:
75         @rm -rf $(top_builddir)/coverage
76         @find $(top_builddir) -name "*.gcda" -delete
77         @lcov --zerocounters --directory $(top_builddir)
78
79 lcov-report:
80         @mkdir $(top_builddir)/coverage
81         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
82         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
83         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
84         @echo "Coverage Report at $(top_builddir)/coverage/html"
85
86 coverage:
87         @$(MAKE) lcov-reset
88         @$(MAKE) check
89         @$(MAKE) lcov-report
90 else
91 lcov-reset:
92         @echo "reconfigure with --enable-coverage"
93
94 lcov-report:
95         @echo "reconfigure with --enable-coverage"
96
97 coverage:
98         @echo "reconfigure with --enable-tests --enable-coverage"
99 endif