build: Add correct dependency for check-build target.
[platform/upstream/efl.git] / src / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2 CLEANFILES =
3 BUILT_SOURCES =
4
5 EOLIAN_FLAGS = -I$(srcdir)\
6                -I$(srcdir)/lib/eo \
7                -I$(srcdir)/lib/ector \
8                -I$(srcdir)/lib/evas/canvas \
9                -I$(srcdir)/lib/edje \
10                -I$(srcdir)/lib/efl/interfaces \
11                -I$(srcdir)/lib/ecore_audio \
12                -I$(srcdir)/lib/ecore \
13                -I$(srcdir)/lib/ecore_con \
14                -I$(srcdir)/lib/eio
15
16 DIST_SUBDIRS =
17 SUBDIRS =
18
19 lib_LTLIBRARIES =
20 bin_PROGRAMS =
21 bin_SCRIPTS =
22 noinst_PROGRAMS =
23 check_PROGRAMS =
24 TESTS =
25 EXTRA_DIST =
26
27
28 EFL_INSTALL_EXEC_HOOK=
29
30 include Makefile_Evil.am
31 include Makefile_Escape.am
32
33 include Makefile_Eina.am
34 include Makefile_Eo.am
35 include Makefile_Efl.am
36 include Makefile_Emile.am
37 include Makefile_Eet.am
38 include Makefile_Eolian.am
39 include Makefile_Ector.am
40 include Makefile_Evas.am
41 include Makefile_Ecore.am
42 include Makefile_Ecore_Con.am
43 include Makefile_Ecore_Ipc.am
44 include Makefile_Ecore_File.am
45 include Makefile_Ecore_Input.am
46 include Makefile_Ecore_Input_Evas.am
47 include Makefile_Ecore_Cocoa.am
48 include Makefile_Ecore_FB.am
49 include Makefile_Ecore_Psl1ght.am
50 include Makefile_Ecore_SDL.am
51 include Makefile_Ecore_Wayland.am
52 include Makefile_Ecore_Win32.am
53 include Makefile_Ecore_X.am
54 include Makefile_Ecore_IMF.am
55 include Makefile_Ecore_IMF_Evas.am
56 include Makefile_Eldbus.am
57 include Makefile_Eeze.am
58 include Makefile_Ecore_Drm.am
59 include Makefile_Ecore_Evas.am
60 include Makefile_Ecore_Audio.am
61 include Makefile_Ecore_Audio_Cxx.am
62 include Makefile_Ecore_Avahi.am
63 include Makefile_Embryo.am
64 include Makefile_Eio.am
65 include Makefile_Efreet.am
66 include Makefile_EPhysics.am
67 include Makefile_Edje.am
68 include Makefile_Emotion.am
69 include Makefile_Ethumb.am
70 include Makefile_Ethumb_Client.am
71
72 include Makefile_Eina_Cxx.am
73 include Makefile_Ecore_Cxx.am
74 include Makefile_Eldbus_Cxx.am
75 include Makefile_Eolian_Cxx.am
76 include Makefile_Eet_Cxx.am
77 include Makefile_Eo_Cxx.am
78 include Makefile_Efl_Cxx.am
79 include Makefile_Edje_Cxx.am
80 include Makefile_Evas_Cxx.am
81 include Makefile_Eio_Cxx.am
82
83 include Makefile_Elua.am
84 include Makefile_Elocation.am
85
86 .PHONY: benchmark examples
87
88 BENCHMARK_SUBDIRS = \
89 benchmarks/eina \
90 benchmarks/eo \
91 benchmarks/evas
92 DIST_SUBDIRS += $(BENCHMARK_SUBDIRS)
93
94 benchmark: all-am
95         @for d in $(BENCHMARK_SUBDIRS); do \
96            echo "Making benchmark in $$d"; \
97            $(MAKE) $(AM_MAKEFLAGS) -C $$d benchmark; \
98         done
99
100 EXAMPLES_SUBDIRS = \
101 examples/eina \
102 examples/eo \
103 examples/eet \
104 examples/evas \
105 examples/ecore \
106 examples/ecore_avahi \
107 examples/eio \
108 examples/eldbus \
109 examples/ephysics \
110 examples/edje \
111 examples/emotion \
112 examples/elocation \
113 examples/ethumb_client
114
115 if HAVE_ELUA
116 EXAMPLES_SUBDIRS += examples/elua
117 endif
118
119 EXAMPLES_CXX = \
120 examples/eina_cxx \
121 examples/eolian_cxx
122
123 if HAVE_CXX11
124 EXAMPLES_SUBDIRS += $(EXAMPLES_CXX)
125 endif
126
127 if ALWAYS_BUILD_EXAMPLES
128 SUBDIRS += . $(EXAMPLES_SUBDIRS)
129 endif
130
131 DIST_SUBDIRS += $(EXAMPLES_SUBDIRS)
132
133 if EFL_ENABLE_TESTS
134 check-build: all
135         @$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
136 endif
137
138 examples: all-am
139         @for d in $(EXAMPLES_SUBDIRS); do \
140            echo "Making examples in $$d"; \
141            $(MAKE) $(AM_MAKEFLAGS) -C $$d examples || exit 1; \
142         done
143
144 install-examples:
145         @for d in $(EXAMPLES_SUBDIRS); do \
146            echo "Making install-examples in $$d"; \
147            $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples || exit 1; \
148         done
149
150 clean-local:
151         find . -type f -name '*.gcno' -delete
152         find . -type f -name '*.gcda' -delete
153         find . -type f -name check-results.xml -delete
154
155 install-exec-hook:
156         $(MKDIR_P) $(DESTDIR)$(libdir)
157         for i in $(lib_LTLIBRARIES); do \
158            FNAME="$(DESTDIR)$(libdir)/`echo $$i | sed "s#lib/.*/##"`"; \
159            FNAMEEXT="$$FNAME.$$$$"; \
160            sed "s/-luuid//" $$FNAME > $$FNAMEEXT; \
161            mv $$FNAMEEXT $$FNAME; \
162         done
163         $(EFL_INSTALL_EXEC_HOOK)