efl: fix make dist.
[platform/upstream/efl.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src data doc
4
5 if HAVE_PO
6
7 SUBDIRS += po
8
9 endif
10
11 MAINTAINERCLEANFILES = \
12 Makefile.in \
13 aclocal.m4 \
14 compile \
15 config.cache-env \
16 config.guess \
17 config.h.in \
18 config.h.in~ \
19 config.sub \
20 configure \
21 depcomp \
22 install-sh \
23 ltmain.sh \
24 missing \
25 m4/libtool.m4 \
26 m4/lt~obsolete.m4 \
27 m4/ltoptions.m4 \
28 m4/ltsugar.m4 \
29 m4/ltversion.m4
30
31 EXTRA_DIST =  \
32 m4/ac_path_generic.m4 \
33 m4/efl_attribute.m4 \
34 m4/efl_check_funcs.m4 \
35 m4/efl_compiler.m4 \
36 m4/efl_doxygen.m4 \
37 m4/efl_path_max.m4 \
38 m4/efl_threads.m4 \
39 m4/evil_windows.m4 \
40 m4/eina_check.m4 \
41 m4/eina_config.m4 \
42 m4/evas_check_engine.m4 \
43 m4/evas_check_loader.m4 \
44 m4/ecore_check_c_extension.m4 \
45 m4/ecore_check_module.m4 \
46 m4/eio_check_options.m4
47
48 EXTRA_DIST += \
49 autogen.sh \
50 licenses/COPYING.LGPL \
51 licenses/COPYING.GPL \
52 licenses/COPYING.BSD \
53 licenses/COPYING.SMALL \
54 old/ChangeLog.ecore \
55 old/ChangeLog.edje \
56 old/ChangeLog.eet \
57 old/ChangeLog.eeze \
58 old/ChangeLog.efreet \
59 old/ChangeLog.eina \
60 old/ChangeLog.eio \
61 old/ChangeLog.embryo \
62 old/ChangeLog.escape \
63 old/ChangeLog.evas \
64 old/ChangeLog.evil \
65 old/ChangeLog.evil.0 \
66 old/NEWS.ecore \
67 old/NEWS.edje \
68 old/NEWS.eet \
69 old/NEWS.eeze \
70 old/NEWS.efreet \
71 old/NEWS.eina \
72 old/NEWS.eio \
73 old/NEWS.embryo \
74 old/NEWS.escape \
75 old/NEWS.evas \
76 old/NEWS.evil \
77 old/README.ecore \
78 old/README.edbus \
79 old/README.edje \
80 old/README.eet \
81 old/README.eeze \
82 old/README.efreet \
83 old/README.eina \
84 old/README.eio \
85 old/README.embryo \
86 old/README.ephysics \
87 old/README.escape \
88 old/README.evas \
89 old/README.evil \
90 spec/efl.spec
91
92 pkgconfigdir = $(libdir)/pkgconfig
93 pkgconfig_DATA =
94
95 if HAVE_WINDOWS
96 pkgconfig_DATA += pc/evil.pc
97 endif
98
99 if HAVE_PS3
100 pkgconfig_DATA += pc/escape.pc
101 endif
102
103 pkgconfig_DATA += \
104 pc/eina.pc \
105 pc/eo.pc \
106 pc/eet.pc \
107 pc/evas.pc \
108 pc/ecore.pc \
109 pc/ecore-con.pc \
110 pc/ecore-ipc.pc \
111 pc/ecore-file.pc \
112 pc/ecore-input.pc \
113 pc/ecore-input-evas.pc \
114 pc/ecore-imf.pc \
115 pc/ecore-imf-evas.pc \
116 pc/ecore-evas.pc \
117 pc/embryo.pc \
118 pc/eio.pc \
119 pc/edbus2.pc \
120 pc/efreet.pc \
121 pc/efreet-mime.pc \
122 pc/efreet-trash.pc \
123 pc/edje.pc
124
125 if BUILD_ENGINE_SOFTWARE_X11
126 pkgconfig_DATA += pc/evas-software-x11.pc
127 endif
128
129 if BUILD_ENGINE_FB
130 pkgconfig_DATA += pc/evas-fb.pc
131 endif
132
133 if BUILD_ENGINE_BUFFER
134 pkgconfig_DATA += pc/evas-software-buffer.pc
135 endif
136
137 if BUILD_ENGINE_GL_X11
138 pkgconfig_DATA += pc/evas-opengl-x11.pc
139 endif
140
141 if BUILD_ENGINE_GL_SDL
142 pkgconfig_DATA += pc/evas-opengl-sdl.pc
143 endif
144
145 if BUILD_ENGINE_GL_COCOA
146 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
147 endif
148
149 if BUILD_ENGINE_SOFTWARE_GDI
150 pkgconfig_DATA += pc/evas-software-gdi.pc
151 endif
152
153 if BUILD_ENGINE_SOFTWARE_DDRAW
154 pkgconfig_DATA += pc/evas-software-ddraw.pc
155 endif
156
157 if BUILD_ENGINE_PSL1GHT
158 pkgconfig_DATA += pc/evas-psl1ght.pc
159 endif
160
161 if BUILD_ENGINE_WAYLAND_SHM
162 pkgconfig_DATA += pc/evas-wayland-shm.pc
163 endif
164
165 if BUILD_ENGINE_WAYLAND_EGL
166 pkgconfig_DATA += pc/evas-wayland-egl.pc
167 endif
168
169 if HAVE_ECORE_COCOA
170 pkgconfig_DATA += pc/ecore-cocoa.pc
171 endif
172
173 if HAVE_ECORE_FB
174 pkgconfig_DATA += pc/ecore-fb.pc
175 endif
176
177 if HAVE_PS3
178 pkgconfig_DATA += pc/ecore-psl1ght.pc
179 endif
180
181 if HAVE_ECORE_SDL
182 pkgconfig_DATA += pc/ecore-sdl.pc
183 endif
184
185 if HAVE_ECORE_WAYLAND
186 pkgconfig_DATA += pc/ecore-wayland.pc
187 endif
188
189 if HAVE_WIN32
190 pkgconfig_DATA += pc/ecore-win32.pc
191 endif
192
193 if HAVE_WINCE
194 pkgconfig_DATA += pc/ecore-wince.pc
195 endif
196
197 if HAVE_ECORE_X
198 pkgconfig_DATA += pc/ecore-x.pc
199 endif
200
201 if HAVE_EEZE
202 pkgconfig_DATA += pc/eeze.pc
203 endif
204
205 if HAVE_EPHYSICS
206 pkgconfig_DATA += pc/ephysics.pc
207 endif
208
209
210 # D-Bus services:
211
212 servicedir = @dbusservicedir@
213 service_DATA = \
214 dbus-services/org.enlightenment.Efreet.service
215
216
217
218 .PHONY: doc benchmark examples install-examples
219
220 # Documentation
221
222 doc:
223         @echo "entering doc/"
224         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
225
226 # Unit tests
227
228 if EFL_ENABLE_COVERAGE
229
230 lcov-reset:
231         @rm -rf $(top_builddir)/coverage
232         @find $(top_builddir) -name "*.gcda" -delete
233         @lcov --zerocounters --directory $(top_builddir)
234
235 lcov-report:
236         @mkdir $(top_builddir)/coverage
237         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
238         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
239         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
240         @echo "Coverage Report at $(top_builddir)/coverage/html"
241
242 endif
243
244 if EFL_ENABLE_TESTS
245
246 check-local:
247 if EFL_ENABLE_COVERAGE
248         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
249 endif
250         @./src/tests/eet/eet_suite$(EXEEXT)
251         @./src/tests/eo/eo_suite$(EXEEXT)
252         @./src/tests/evas/evas_suite$(EXEEXT)
253         @./src/tests/ecore/ecore_suite$(EXEEXT)
254 if EFL_ENABLE_COVERAGE
255         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
256 endif
257
258 endif
259
260 # benchmark
261
262 benchmark:
263         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
264         @mkdir benchmark || true
265         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
266
267 # examples
268
269 examples:
270         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
271
272 install-examples:
273         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
274
275 # cleaning
276
277 clean-local:
278         rm -rf benchmark coverage