add packaging files
[platform/upstream/evas.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src doc data
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-direct3d.pc.in \
44 evas-software-16-wince.pc.in \
45 evas-psl1ght.pc.in \
46 evas-wayland-shm.pc.in \
47 evas-wayland-egl.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_shm_open.m4 \
57 m4/efl_tests.m4 \
58 m4/evas_check_engine.m4 \
59 m4/evas_check_loader.m4 \
60 m4/evas_converter.m4 \
61 m4/evas_dither.m4 \
62 m4/evas_scaler.m4
63
64 pkgconfigdir = $(libdir)/pkgconfig
65 pkgconfig_DATA = evas.pc
66
67 if BUILD_ENGINE_SOFTWARE_X11
68 pkgconfig_DATA += evas-software-x11.pc
69 endif
70
71 if BUILD_ENGINE_SOFTWARE_16_X11
72 pkgconfig_DATA += evas-software-16-x11.pc
73 endif
74
75 if BUILD_ENGINE_SOFTWARE_8_X11
76 pkgconfig_DATA += evas-software-8-x11.pc
77 endif
78
79 if BUILD_ENGINE_DIRECTFB
80 pkgconfig_DATA += evas-directfb.pc
81 endif
82
83 if BUILD_ENGINE_FB
84 pkgconfig_DATA += evas-fb.pc
85 endif
86
87 if BUILD_ENGINE_BUFFER
88 pkgconfig_DATA += evas-software-buffer.pc
89 endif
90
91 if BUILD_ENGINE_GL_X11
92 pkgconfig_DATA += evas-opengl-x11.pc
93 endif
94
95 if BUILD_ENGINE_GL_SDL
96 pkgconfig_DATA += evas-opengl-sdl.pc
97 endif
98
99 if BUILD_ENGINE_GL_COCOA
100 pkgconfig_DATA += evas-opengl-cocoa.pc
101 endif
102
103 if BUILD_ENGINE_SOFTWARE_GDI
104 pkgconfig_DATA += evas-software-gdi.pc
105 endif
106
107 if BUILD_ENGINE_SOFTWARE_DDRAW
108 pkgconfig_DATA += evas-software-ddraw.pc
109 endif
110
111 if BUILD_ENGINE_DIRECT3D
112 pkgconfig_DATA += evas-direct3d.pc
113 endif
114
115 if BUILD_ENGINE_SOFTWARE_16_WINCE
116 pkgconfig_DATA += evas-software-16-wince.pc
117 endif
118
119 if BUILD_ENGINE_SOFTWARE_16_SDL
120 pkgconfig_DATA += evas-software-sdl.pc
121 endif
122
123 if BUILD_ENGINE_PSL1GHT
124 pkgconfig_DATA += evas-psl1ght.pc
125 endif
126
127 if BUILD_ENGINE_WAYLAND_SHM
128 pkgconfig_DATA += evas-wayland-shm.pc
129 endif
130
131 if BUILD_ENGINE_WAYLAND_EGL
132 pkgconfig_DATA += evas-wayland-egl.pc
133 endif
134
135 .PHONY: doc install-doc coverage
136
137 doc:
138         @echo "entering doc/"
139         $(MAKE) -C doc doc
140
141 install-doc:
142         @echo "entering doc/"
143         make -C doc install-doc
144
145 # Unit tests
146
147 if EFL_ENABLE_TESTS
148
149 check-local:
150         @./src/tests/evas_suite
151
152 else
153
154 check-local:
155         @echo "reconfigure with --enable-tests"
156
157 endif
158
159 # Coverage report
160
161 if EFL_ENABLE_COVERAGE
162 lcov-reset:
163         @rm -rf $(top_builddir)/coverage
164         @find $(top_builddir) -name "*.gcda" -delete
165         @lcov --zerocounters --directory $(top_builddir)
166
167 lcov-report:
168         @mkdir $(top_builddir)/coverage
169         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
170         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
171         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
172         @echo "Coverage Report at $(top_builddir)/coverage/html"
173
174
175 coverage:
176         @$(MAKE) lcov-reset
177         @$(MAKE) check
178         @$(MAKE) lcov-report
179 else
180 lcov-reset:
181         @echo "reconfigure with --enable-coverage"
182
183 lcov-report:
184         @echo "reconfigure with --enable-coverage"
185
186 coverage:
187         @echo "reconfigure with --enable-tests --enable-coverage"
188 endif
189
190 maintainer-clean-local:
191         rm -rf coverage