fix breakage from r67537 with alias inheriting or somesuch
[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 coverage
76         @find . -name "*.gcda" -exec rm {} \;
77         @lcov --directory . --zerocounters
78
79 lcov-report:
80         @mkdir coverage
81         @lcov --compat-libtool --directory $(top_srcdir)/src --capture --output-file coverage/coverage.info
82         @lcov -l coverage/coverage.info |grep "\\.h"  |cut -d " " -f 2 > coverage/remove
83         @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
84         @rm coverage/remove
85         @mv coverage/coverage.cleaned.info coverage/coverage.info
86         @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
87
88 coverage:
89         @make lcov-reset
90         @make check
91         @make lcov-report
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