Ticket #824 - no readme.in's
[framework/uifw/evas.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src doc
4
5 MAINTAINERCLEANFILES = \
6 Makefile.in \
7 aclocal.m4 \
8 config.guess \
9 config.h.in \
10 config.h.in~ \
11 config.sub \
12 configure \
13 depcomp \
14 install-sh \
15 ltmain.sh \
16 missing \
17 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
18 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
19 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
20 m4/libtool.m4 \
21 m4/lt~obsolete.m4 \
22 m4/ltoptions.m4 \
23 m4/ltsugar.m4 \
24 m4/ltversion.m4
25
26 bin_SCRIPTS =
27
28 EXTRA_DIST = \
29 AUTHORS \
30 COPYING \
31 autogen.sh \
32 evas.pc.in \
33 evas-directfb.pc.in \
34 evas-fb.pc.in \
35 evas-opengl-x11.pc.in \
36 evas-opengl-sdl.pc.in \
37 evas-software-buffer.pc.in \
38 evas-software-x11.pc.in \
39 evas-software-16-x11.pc.in \
40 evas-software-8-x11.pc.in \
41 evas-software-gdi.pc.in \
42 evas-software-ddraw.pc.in \
43 evas-software-16-ddraw.pc.in \
44 evas-direct3d.pc.in \
45 evas-software-16-wince.pc.in \
46 evas-software-sdl.pc.in \
47 evas-psl1ght.pc.in \
48 evas.spec.in \
49 evas.spec \
50 m4/efl_attribute.m4 \
51 m4/efl_coverage.m4 \
52 m4/efl_doxygen.m4 \
53 m4/efl_fnmatch.m4 \
54 m4/efl_path_max.m4 \
55 m4/efl_pthread.m4 \
56 m4/efl_tests.m4 \
57 m4/evas_check_engine.m4 \
58 m4/evas_check_loader.m4 \
59 m4/evas_converter.m4 \
60 m4/evas_dither.m4 \
61 m4/evas_scaler.m4
62
63 pkgconfigdir = $(libdir)/pkgconfig
64 pkgconfig_DATA = evas.pc
65
66 if BUILD_ENGINE_SOFTWARE_X11
67 pkgconfig_DATA += evas-software-x11.pc
68 endif
69
70 if BUILD_ENGINE_SOFTWARE_16_X11
71 pkgconfig_DATA += evas-software-16-x11.pc
72 endif
73
74 if BUILD_ENGINE_SOFTWARE_8_X11
75 pkgconfig_DATA += evas-software-8-x11.pc
76 endif
77
78 if BUILD_ENGINE_DIRECTFB
79 pkgconfig_DATA += evas-directfb.pc
80 endif
81
82 if BUILD_ENGINE_FB
83 pkgconfig_DATA += evas-fb.pc
84 endif
85
86 if BUILD_ENGINE_BUFFER
87 pkgconfig_DATA += evas-software-buffer.pc
88 endif
89
90 if BUILD_ENGINE_GL_X11
91 pkgconfig_DATA += evas-opengl-x11.pc
92 endif
93
94 if BUILD_ENGINE_GL_SDL
95 pkgconfig_DATA += evas-opengl-sdl.pc
96 endif
97
98 if BUILD_ENGINE_GL_COCOA
99 pkgconfig_DATA += evas-opengl-cocoa.pc
100 endif
101
102 if BUILD_ENGINE_SOFTWARE_GDI
103 pkgconfig_DATA += evas-software-gdi.pc
104 endif
105
106 if BUILD_ENGINE_SOFTWARE_DDRAW
107 pkgconfig_DATA += evas-software-ddraw.pc
108 endif
109
110 if BUILD_ENGINE_SOFTWARE_16_DDRAW
111 pkgconfig_DATA += evas-software-16-ddraw.pc
112 endif
113
114 if BUILD_ENGINE_DIRECT3D
115 pkgconfig_DATA += evas-direct3d.pc
116 endif
117
118 if BUILD_ENGINE_SOFTWARE_16_WINCE
119 pkgconfig_DATA += evas-software-16-wince.pc
120 endif
121
122 if BUILD_ENGINE_SOFTWARE_SDL
123 pkgconfig_DATA += evas-software-sdl.pc
124 endif
125
126 if BUILD_ENGINE_PSL1GHT
127 pkgconfig_DATA += evas-psl1ght.pc
128 endif
129
130 .PHONY: doc coverage
131
132 doc:
133         @echo "entering doc/"
134         $(MAKE) -C doc doc
135
136 # Unit tests
137
138 if EFL_ENABLE_TESTS
139
140 check-local:
141         @./src/tests/evas_suite
142
143 else
144
145 check-local:
146         @echo "reconfigure with --enable-tests"
147
148 endif
149
150 # Coverage report
151
152 if EFL_ENABLE_COVERAGE
153 lcov-reset:
154         @rm -rf coverage
155         @find . -name "*.gcda" -exec rm {} \;
156         @lcov --directory . --zerocounters
157
158 lcov-report:
159         @mkdir coverage
160         @lcov --compat-libtool --directory $(top_srcdir)/src --capture --output-file coverage/coverage.info
161         @lcov -l coverage/coverage.info |grep "\\.h"  |cut -d " " -f 2 > coverage/remove
162         @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
163         @rm coverage/remove
164         @mv coverage/coverage.cleaned.info coverage/coverage.info
165         @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
166
167 coverage:
168         @make lcov-reset
169         @make check
170         @make lcov-report
171 else
172 lcov-reset:
173         @echo "reconfigure with --enable-coverage"
174
175 lcov-report:
176         @echo "reconfigure with --enable-coverage"
177
178 coverage:
179         @echo "reconfigure with --enable-tests --enable-coverage"
180 endif
181
182 maintainer-clean-local:
183         rm -rf coverage