link dbus and systemd services, allows systemd activation.
[platform/upstream/efl.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AM_MAKEFLAGS = --no-print-directory
3 AM_DISTCHECK_CONFIGURE_FLAGS = \
4 --with-tests=regular
5
6 SUBDIRS = src data doc
7
8 if HAVE_PO
9
10 SUBDIRS += po
11
12 endif
13
14 MAINTAINERCLEANFILES = \
15 Makefile.in \
16 aclocal.m4 \
17 compile \
18 config.cache-env \
19 config.guess \
20 config.h.in \
21 config.h.in~ \
22 config.sub \
23 configure \
24 depcomp \
25 install-sh \
26 ltmain.sh \
27 missing \
28 m4/libtool.m4 \
29 m4/lt~obsolete.m4 \
30 m4/ltoptions.m4 \
31 m4/ltsugar.m4 \
32 m4/ltversion.m4
33
34 EXTRA_DIST =  \
35 m4/pkg_var.m4 \
36 m4/ac_path_generic.m4 \
37 m4/ecore_check_c_extension.m4 \
38 m4/ecore_check_module.m4 \
39 m4/efl_attribute.m4 \
40 m4/efl_check_funcs.m4 \
41 m4/efl_compiler.m4 \
42 m4/efl_doxygen.m4 \
43 m4/efl_path_max.m4 \
44 m4/efl_threads.m4 \
45 m4/eina_check.m4 \
46 m4/eina_config.m4 \
47 m4/eio_check_options.m4 \
48 m4/evas_check_engine.m4 \
49 m4/evas_check_loader.m4 \
50 m4/evil_windows.m4 \
51 m4/libgcrypt.m4 \
52 m4/gcc_check_builtin.m4
53
54 EXTRA_DIST += \
55 README \
56 AUTHORS \
57 COPYING \
58 COMPLIANCE \
59 autogen.sh \
60 licenses/COPYING.LGPL \
61 licenses/COPYING.GPL \
62 licenses/COPYING.BSD \
63 licenses/COPYING.SMALL \
64 old/ChangeLog.ecore \
65 old/ChangeLog.edje \
66 old/ChangeLog.eet \
67 old/ChangeLog.eeze \
68 old/ChangeLog.efreet \
69 old/ChangeLog.eina \
70 old/ChangeLog.eio \
71 old/ChangeLog.embryo \
72 old/ChangeLog.emotion \
73 old/ChangeLog.escape \
74 old/ChangeLog.ethumb \
75 old/ChangeLog.evas \
76 old/ChangeLog.evil \
77 old/ChangeLog.evil.0 \
78 old/NEWS.ecore \
79 old/NEWS.edje \
80 old/NEWS.eet \
81 old/NEWS.eeze \
82 old/NEWS.efreet \
83 old/NEWS.eina \
84 old/NEWS.eio \
85 old/NEWS.embryo \
86 old/NEWS.emotion \
87 old/NEWS.escape \
88 old/NEWS.ethumb \
89 old/NEWS.evas \
90 old/NEWS.evil \
91 old/README.ecore \
92 old/README.eldbus \
93 old/README.edje \
94 old/README.eet \
95 old/README.eeze \
96 old/README.efreet \
97 old/README.eina \
98 old/README.eio \
99 old/README.embryo \
100 old/README.emotion \
101 old/README.ephysics \
102 old/README.escape \
103 old/README.ethumb \
104 old/README.evas \
105 old/README.evil \
106 spec/efl.spec \
107 pkgbuild/PKGBUILD \
108 pkgbuild/efl.install
109
110 pkgconfigdir = $(libdir)/pkgconfig
111 pkgconfig_DATA =
112
113 if HAVE_WINDOWS
114 pkgconfig_DATA += pc/evil.pc
115 endif
116
117 if HAVE_PS3
118 pkgconfig_DATA += pc/escape.pc
119 endif
120
121 pkgconfig_DATA += \
122 pc/eina.pc \
123 pc/eina-cxx.pc \
124 pc/eo.pc \
125 pc/eet.pc \
126 pc/evas.pc \
127 pc/ecore.pc \
128 pc/ecore-con.pc \
129 pc/ecore-ipc.pc \
130 pc/ecore-file.pc \
131 pc/ecore-input.pc \
132 pc/ecore-input-evas.pc \
133 pc/ecore-imf.pc \
134 pc/ecore-imf-evas.pc \
135 pc/ecore-evas.pc \
136 pc/ecore-avahi.pc \
137 pc/embryo.pc \
138 pc/eio.pc \
139 pc/eldbus.pc \
140 pc/efreet.pc \
141 pc/efreet-mime.pc \
142 pc/efreet-trash.pc \
143 pc/edje.pc \
144 pc/emotion.pc \
145 pc/ethumb.pc \
146 pc/ethumb_client.pc
147
148 if BUILD_ENGINE_SOFTWARE_X11
149 pkgconfig_DATA += pc/evas-software-x11.pc
150 endif
151
152 if BUILD_ENGINE_FB
153 pkgconfig_DATA += pc/evas-fb.pc
154 endif
155
156 if BUILD_ENGINE_BUFFER
157 pkgconfig_DATA += pc/evas-software-buffer.pc
158 endif
159
160 if BUILD_ENGINE_GL_X11
161 pkgconfig_DATA += pc/evas-opengl-x11.pc
162 endif
163
164 if BUILD_ENGINE_GL_SDL
165 pkgconfig_DATA += pc/evas-opengl-sdl.pc
166 endif
167
168 if BUILD_ENGINE_GL_COCOA
169 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
170 endif
171
172 if BUILD_ENGINE_SOFTWARE_GDI
173 pkgconfig_DATA += pc/evas-software-gdi.pc
174 endif
175
176 if BUILD_ENGINE_SOFTWARE_DDRAW
177 pkgconfig_DATA += pc/evas-software-ddraw.pc
178 endif
179
180 if BUILD_ENGINE_PSL1GHT
181 pkgconfig_DATA += pc/evas-psl1ght.pc
182 endif
183
184 if BUILD_ENGINE_WAYLAND_SHM
185 pkgconfig_DATA += pc/evas-wayland-shm.pc
186 endif
187
188 if BUILD_ENGINE_WAYLAND_EGL
189 pkgconfig_DATA += pc/evas-wayland-egl.pc
190 endif
191
192 if BUILD_ENGINE_DRM
193 pkgconfig_DATA += pc/evas-drm.pc
194 endif
195
196 if HAVE_ECORE_COCOA
197 pkgconfig_DATA += pc/ecore-cocoa.pc
198 endif
199
200 if HAVE_ECORE_FB
201 pkgconfig_DATA += pc/ecore-fb.pc
202 endif
203
204 if HAVE_ECORE_DRM
205 pkgconfig_DATA += pc/ecore-drm.pc
206 endif
207
208 if HAVE_PS3
209 pkgconfig_DATA += pc/ecore-psl1ght.pc
210 endif
211
212 if HAVE_ECORE_SDL
213 pkgconfig_DATA += pc/ecore-sdl.pc
214 endif
215
216 if HAVE_ECORE_WAYLAND
217 pkgconfig_DATA += pc/ecore-wayland.pc
218 endif
219
220 if HAVE_WIN32
221 pkgconfig_DATA += pc/ecore-win32.pc
222 endif
223
224 if HAVE_WINCE
225 pkgconfig_DATA += pc/ecore-wince.pc
226 endif
227
228 if HAVE_ECORE_X
229 pkgconfig_DATA += pc/ecore-x.pc
230 endif
231
232 if HAVE_EEZE
233 pkgconfig_DATA += pc/eeze.pc
234 endif
235
236 if HAVE_EPHYSICS
237 pkgconfig_DATA += pc/ephysics.pc
238 endif
239
240 if HAVE_ECORE_AUDIO
241 pkgconfig_DATA += pc/ecore-audio.pc
242 endif
243
244 # Cmake configs:
245 eina_cmakeconfigdir = $(libdir)/cmake/Eina/
246 eina_cmakeconfig_DATA = \
247 cmakeconfig/EinaConfig.cmake \
248 cmakeconfig/EinaConfigVersion.cmake
249
250 eeze_cmakeconfigdir = $(libdir)/cmake/Eeze/
251 eeze_cmakeconfig_DATA = \
252 cmakeconfig/EezeConfig.cmake \
253 cmakeconfig/EezeConfigVersion.cmake
254
255 eo_cmakeconfigdir = $(libdir)/cmake/Eo/
256 eo_cmakeconfig_DATA = \
257 cmakeconfig/EoConfig.cmake \
258 cmakeconfig/EoConfigVersion.cmake
259
260 eet_cmakeconfigdir = $(libdir)/cmake/Eet/
261 eet_cmakeconfig_DATA = \
262 cmakeconfig/EetConfig.cmake \
263 cmakeconfig/EetConfigVersion.cmake
264
265 evas_cmakeconfigdir =  $(libdir)/cmake/Evas/
266 evas_cmakeconfig_DATA = \
267 cmakeconfig/EvasConfig.cmake \
268 cmakeconfig/EvasConfigVersion.cmake
269
270 ecore_cmakeconfigdir =  $(libdir)/cmake/Ecore/
271 ecore_cmakeconfig_DATA = \
272 cmakeconfig/EcoreConfig.cmake \
273 cmakeconfig/EcoreConfigVersion.cmake
274
275 edje_cmakeconfigdir =  $(libdir)/cmake/Edje/
276 edje_cmakeconfig_DATA = \
277 cmakeconfig/EdjeConfig.cmake \
278 cmakeconfig/EdjeConfigVersion.cmake
279
280 eldbus_cmakeconfigdir = $(libdir)/cmake/Eldbus/
281 eldbus_cmakeconfig_DATA = \
282 cmakeconfig/EldbusConfig.cmake \
283 cmakeconfig/EldbusConfigVersion.cmake
284
285 efreet_cmakeconfigdir =  $(libdir)/cmake/Efreet/
286 efreet_cmakeconfig_DATA = \
287 cmakeconfig/EfreetConfig.cmake \
288 cmakeconfig/EfreetConfigVersion.cmake
289
290 ethumb_cmakeconfigdir =  $(libdir)/cmake/Ethumb/
291 ethumb_cmakeconfig_DATA = \
292 cmakeconfig/EthumbConfig.cmake \
293 cmakeconfig/EthumbConfigVersion.cmake
294
295 ethumbclient_cmakeconfigdir =  $(libdir)/cmake/EthumbClient/
296 ethumbclient_cmakeconfig_DATA = \
297 cmakeconfig/EthumbClientConfig.cmake \
298 cmakeconfig/EthumbClientConfigVersion.cmake
299
300 emotion_cmakeconfigdir =  $(libdir)/cmake/Emotion/
301 emotion_cmakeconfig_DATA = \
302 cmakeconfig/EmotionConfig.cmake \
303 cmakeconfig/EmotionConfigVersion.cmake
304
305
306 # D-Bus services:
307
308 servicedir = @dbusservicedir@
309 service_DATA = \
310 dbus-services/org.enlightenment.Efreet.service \
311 dbus-services/org.enlightenment.Ethumb.service
312
313 if HAVE_SYSTEMD_USER_SESSION
314 systemdunitsdir = @USER_SESSION_DIR@
315 systemdunits_DATA = \
316 systemd-services/efreet.service \
317 systemd-services/ethumb.service
318 endif
319 EXTRA_DIST += $(systemdunits_DATA)
320
321
322 .PHONY: doc benchmark examples install-examples
323
324 # Documentation
325
326 doc:
327         @echo "entering doc/"
328         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
329
330 # Unit tests
331
332 if EFL_ENABLE_COVERAGE
333
334 lcov-reset:
335         @rm -rf $(top_builddir)/coverage
336         @find $(top_builddir) -name "*.gcda" -delete
337         @lcov --zerocounters --directory $(top_builddir)
338
339 lcov-report:
340         @mkdir $(top_builddir)/coverage
341         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
342         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
343         lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
344         genhtml --branch-coverage -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned2.info
345         @echo "Coverage Report at $(top_builddir)/coverage/html"
346
347 endif
348
349 if EFL_ENABLE_TESTS
350
351 lcov-check:
352 if EFL_ENABLE_COVERAGE
353         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
354 endif
355         @$(MAKE) $(AM_MAKEFLAGS) check
356 if EFL_ENABLE_COVERAGE
357         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
358 endif
359 endif
360
361 # benchmark
362
363 benchmark:
364         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
365         @mkdir benchmark || true
366         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
367
368 # examples
369
370 examples:
371         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
372
373 install-examples:
374         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
375
376 pkgbuild::
377         @echo "making arch packages"
378         makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD
379
380 # cleaning
381
382 clean-local:
383         rm -rf benchmark coverage