summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-04-14 17:00:08 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-04-14 17:00:08 -0700
commitfb759c7b90e58babee49ecac16cc446871ec47cb (patch)
tree7be071fac00133768d8f01db8e17efe0f782f0f2 /src/examples
parent70cc3677ae9ea4f7edbb38df096a238115b988d3 (diff)
examples: add DESTDIR support for install.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore/Makefile.am6
-rw-r--r--src/examples/ecore_avahi/Makefile.am10
-rw-r--r--src/examples/edje/Makefile.am8
-rw-r--r--src/examples/eet/Makefile.am6
-rw-r--r--src/examples/eina/Makefile.am6
-rw-r--r--src/examples/eina_cxx/Makefile.am4
-rw-r--r--src/examples/eio/Makefile.am6
-rw-r--r--src/examples/eldbus/Makefile.am6
-rw-r--r--src/examples/elementary/Makefile.am9
-rw-r--r--src/examples/elocation/Makefile.am6
-rw-r--r--src/examples/emile/Makefile.am6
-rw-r--r--src/examples/emotion/Makefile.am6
-rw-r--r--src/examples/eolian_cxx/Makefile.am6
-rw-r--r--src/examples/ephysics/Makefile.am6
-rw-r--r--src/examples/ethumb_client/Makefile.am6
-rw-r--r--src/examples/evas/Makefile.am6
16 files changed, 54 insertions, 49 deletions
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index a8af94fc7d..379f5e0551 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -331,12 +331,12 @@ clean-local:
331 rm -f $(EXTRA_PROGRAMS) 331 rm -f $(EXTRA_PROGRAMS)
332 332
333install-examples: 333install-examples:
334 $(MKDIR_P) $(datadir)/ecore/examples 334 $(MKDIR_P) $(DESTDIR)$(datadir)/ecore/examples
335 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/ecore/examples 335 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/ecore/examples
336 336
337uninstall-local: 337uninstall-local:
338 for f in $(SRCS) $(DATA_FILES); do \ 338 for f in $(SRCS) $(DATA_FILES); do \
339 rm -f $(datadir)/ecore/examples/$$f ; \ 339 rm -f $(DESTDIR)$(datadir)/ecore/examples/$$f ; \
340 done 340 done
341 341
342if ALWAYS_BUILD_EXAMPLES 342if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/ecore_avahi/Makefile.am b/src/examples/ecore_avahi/Makefile.am
index fc4b5814c5..793f24b2c9 100644
--- a/src/examples/ecore_avahi/Makefile.am
+++ b/src/examples/ecore_avahi/Makefile.am
@@ -36,10 +36,10 @@ clean-local:
36 rm -f $(EXTRA_PROGRAMS) 36 rm -f $(EXTRA_PROGRAMS)
37 37
38install-examples: 38install-examples:
39 $(MKDIR_P) $(datadir)/ecore_avahi/examples 39 $(MKDIR_P) $(DESTDIR)$(datadir)/ecore_avahi/examples
40 $(install_sh_DATA) -c $(srcdir)/ecore_avahi_browse_example.c $(datadir)/ecore_avahi/examples 40 $(install_sh_DATA) -c $(srcdir)/ecore_avahi_browse_example.c $(DESTDIR)$(datadir)/ecore_avahi/examples
41 $(install_sh_DATA) -c $(srcdir)/ecore_avahi_example.c $(datadir)/ecore_avahi/examples 41 $(install_sh_DATA) -c $(srcdir)/ecore_avahi_example.c $(DESTDIR)$(datadir)/ecore_avahi/examples
42 42
43uninstall-local: 43uninstall-local:
44 rm -f $(datadir)/ecore_avahi/examples/ecore_avahi_example.c 44 rm -f $(DESTDIR)$(datadir)/ecore_avahi/examples/ecore_avahi_example.c
45 rm -f $(datadir)/ecore_avahi/examples/ecore_avahi_browse_example.c 45 rm -f $(DESTDIR)$(datadir)/ecore_avahi/examples/ecore_avahi_browse_example.c
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 8ffc20affa..d0624dfc57 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -209,13 +209,13 @@ clean-local:
209 rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED) 209 rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED)
210 210
211install-examples: $(EDJS) 211install-examples: $(EDJS)
212 $(MKDIR_P) $(datadir)/edje/examples 212 $(MKDIR_P) $(DESTDIR)$(datadir)/edje/examples
213 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DIST_EDCS) $(DATA_FILES) $(datadir)/edje/examples 213 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DIST_EDCS) $(DATA_FILES) $(DESTDIR)$(datadir)/edje/examples
214 cd $(builddir) && $(install_sh_DATA) -c $(EDJS) $(datadir)/edje/examples 214 cd $(builddir) && $(install_sh_DATA) -c $(EDJS) $(DESTDIR)$(datadir)/edje/examples
215 215
216uninstall-local: 216uninstall-local:
217 for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \ 217 for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
218 rm -f $(datadir)/edje/examples/$$f ; \ 218 rm -f $(DESTDIR)$(datadir)/edje/examples/$$f ; \
219 done 219 done
220 220
221if ALWAYS_BUILD_EXAMPLES 221if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/eet/Makefile.am b/src/examples/eet/Makefile.am
index bd5eb7838d..c2fc68844c 100644
--- a/src/examples/eet/Makefile.am
+++ b/src/examples/eet/Makefile.am
@@ -50,12 +50,12 @@ clean-local:
50 rm -f $(EXTRA_PROGRAMS) 50 rm -f $(EXTRA_PROGRAMS)
51 51
52install-examples: 52install-examples:
53 $(MKDIR_P) $(datadir)/eet/examples 53 $(MKDIR_P) $(DESTDIR)$(datadir)/eet/examples
54 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eet/examples 54 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eet/examples
55 55
56uninstall-local: 56uninstall-local:
57 for f in $(SRCS) $(DATA_FILES); do \ 57 for f in $(SRCS) $(DATA_FILES); do \
58 rm -f $(datadir)/eet/examples/$$f ; \ 58 rm -f $(DESTDIR)$(datadir)/eet/examples/$$f ; \
59 done 59 done
60 60
61if ALWAYS_BUILD_EXAMPLES 61if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/eina/Makefile.am b/src/examples/eina/Makefile.am
index 3d27bb5050..56eb2777e8 100644
--- a/src/examples/eina/Makefile.am
+++ b/src/examples/eina/Makefile.am
@@ -163,12 +163,12 @@ clean-local:
163 rm -f $(EXTRA_PROGRAMS) 163 rm -f $(EXTRA_PROGRAMS)
164 164
165install-examples: 165install-examples:
166 $(MKDIR_P) $(datadir)/eina/examples 166 $(MKDIR_P) $(DESTDIR)$(datadir)/eina/examples
167 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eina/examples 167 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eina/examples
168 168
169uninstall-local: 169uninstall-local:
170 for f in $(SRCS) $(DATA_FILES); do \ 170 for f in $(SRCS) $(DATA_FILES); do \
171 rm -f $(datadir)/eina/examples/$$f ; \ 171 rm -f $(DESTDIR)$(datadir)/eina/examples/$$f ; \
172 done 172 done
173 173
174if ALWAYS_BUILD_EXAMPLES 174if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/eina_cxx/Makefile.am b/src/examples/eina_cxx/Makefile.am
index 939d879be7..5bf319ccc5 100644
--- a/src/examples/eina_cxx/Makefile.am
+++ b/src/examples/eina_cxx/Makefile.am
@@ -30,11 +30,11 @@ clean-local:
30 30
31install-examples: 31install-examples:
32 $(MKDIR_P) $(datadir)/eina_cxx/examples 32 $(MKDIR_P) $(datadir)/eina_cxx/examples
33 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eina_cxx/examples 33 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eina_cxx/examples
34 34
35uninstall-local: 35uninstall-local:
36 for f in $(SRCS) $(DATA_FILES); do \ 36 for f in $(SRCS) $(DATA_FILES); do \
37 rm -f $(datadir)/eina_cxx/examples/$$f ; \ 37 rm -f $(DESTDIR)$(datadir)/eina_cxx/examples/$$f ; \
38 done 38 done
39 39
40if ALWAYS_BUILD_EXAMPLES 40if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/eio/Makefile.am b/src/examples/eio/Makefile.am
index ba3bf69436..4f5dbcd88d 100644
--- a/src/examples/eio/Makefile.am
+++ b/src/examples/eio/Makefile.am
@@ -59,12 +59,12 @@ clean-local:
59 rm -f $(EXTRA_PROGRAMS) 59 rm -f $(EXTRA_PROGRAMS)
60 60
61install-examples: 61install-examples:
62 $(MKDIR_P) $(datadir)/eio/examples 62 $(MKDIR_P) $(DESTDIR)$(datadir)/eio/examples
63 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eio/examples 63 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eio/examples
64 64
65uninstall-local: 65uninstall-local:
66 for f in $(SRCS) $(DATA_FILES); do \ 66 for f in $(SRCS) $(DATA_FILES); do \
67 rm -f $(datadir)/eio/examples/$$f ; \ 67 rm -f $(DESTDIR)$(datadir)/eio/examples/$$f ; \
68 done 68 done
69 69
70if ALWAYS_BUILD_EXAMPLES 70if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/eldbus/Makefile.am b/src/examples/eldbus/Makefile.am
index 65e6254177..0bb7a993f1 100644
--- a/src/examples/eldbus/Makefile.am
+++ b/src/examples/eldbus/Makefile.am
@@ -90,12 +90,12 @@ clean-local:
90 rm -f $(EXTRA_PROGRAMS) 90 rm -f $(EXTRA_PROGRAMS)
91 91
92install-examples: 92install-examples:
93 $(MKDIR_P) $(datadir)/eldbus/examples 93 $(MKDIR_P) $(DESTDIR)$(datadir)/eldbus/examples
94 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eldbus/examples 94 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eldbus/examples
95 95
96uninstall-local: 96uninstall-local:
97 for f in $(SRCS) $(DATA_FILES); do \ 97 for f in $(SRCS) $(DATA_FILES); do \
98 rm -f $(datadir)/eldbus/examples/$$f ; \ 98 rm -f $(DESTDIR)$(datadir)/eldbus/examples/$$f ; \
99 done 99 done
100 100
101if ALWAYS_BUILD_EXAMPLES 101if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/elementary/Makefile.am b/src/examples/elementary/Makefile.am
index 482893d939..3fe1a8b337 100644
--- a/src/examples/elementary/Makefile.am
+++ b/src/examples/elementary/Makefile.am
@@ -581,5 +581,10 @@ EXTRA_DIST = dict.txt layout_example.edc theme_example.edc codegen_example.edc e
581examples: $(examples_PROGRAMS) 581examples: $(examples_PROGRAMS)
582 582
583install-examples: 583install-examples:
584 $(MKDIR_P) $(datadir)/elementary/examples 584 $(MKDIR_P) $(DESTDIR)$(datadir)/elementary/examples
585 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(datadir)/elementary/examples 585 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DESTDIR)$(datadir)/elementary/examples
586
587uninstall-local:
588 for f in $(SRCS); do \
589 rm -f $(DESTDIR)$(datadir)/elementary/examples/$$f ; \
590 done
diff --git a/src/examples/elocation/Makefile.am b/src/examples/elocation/Makefile.am
index 8998212411..5c08d0c4d6 100644
--- a/src/examples/elocation/Makefile.am
+++ b/src/examples/elocation/Makefile.am
@@ -45,12 +45,12 @@ clean-local:
45 rm -f $(EXTRA_PROGRAMS) 45 rm -f $(EXTRA_PROGRAMS)
46 46
47install-examples: 47install-examples:
48 $(MKDIR_P) $(datadir)/elocation/examples 48 $(MKDIR_P) $(DESTDIR)$(datadir)/elocation/examples
49 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/elocation/examples 49 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/elocation/examples
50 50
51uninstall-local: 51uninstall-local:
52 for f in $(SRCS) $(DATA_FILES); do \ 52 for f in $(SRCS) $(DATA_FILES); do \
53 rm -f $(datadir)/elocation/examples/$$f ; \ 53 rm -f $(DESTDIR)$(datadir)/elocation/examples/$$f ; \
54 done 54 done
55 55
56if ALWAYS_BUILD_EXAMPLES 56if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/emile/Makefile.am b/src/examples/emile/Makefile.am
index 3377a87fa5..11a6cd5777 100644
--- a/src/examples/emile/Makefile.am
+++ b/src/examples/emile/Makefile.am
@@ -38,12 +38,12 @@ clean-local:
38 rm -f $(EXTRA_PROGRAMS) 38 rm -f $(EXTRA_PROGRAMS)
39 39
40install-examples: 40install-examples:
41 $(MKDIR_P) $(datadir)/emile/examples 41 $(MKDIR_P) $(DESTDIR)$(datadir)/emile/examples
42 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/emile/examples 42 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/emile/examples
43 43
44uninstall-local: 44uninstall-local:
45 for f in $(SRCS) $(DATA_FILES); do \ 45 for f in $(SRCS) $(DATA_FILES); do \
46 rm -f $(datadir)/emile/examples/$$f ; \ 46 rm -f $(DESTDIR)$(datadir)/emile/examples/$$f ; \
47 done 47 done
48 48
49if ALWAYS_BUILD_EXAMPLES 49if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/emotion/Makefile.am b/src/examples/emotion/Makefile.am
index 15bde92e49..c5027e868b 100644
--- a/src/examples/emotion/Makefile.am
+++ b/src/examples/emotion/Makefile.am
@@ -49,12 +49,12 @@ clean-local:
49 rm -f $(EXTRA_PROGRAMS) 49 rm -f $(EXTRA_PROGRAMS)
50 50
51install-examples: 51install-examples:
52 $(MKDIR_P) $(datadir)/emotion/examples 52 $(MKDIR_P) $(DESTDIR)$(datadir)/emotion/examples
53 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/emotion/examples 53 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/emotion/examples
54 54
55uninstall-local: 55uninstall-local:
56 for f in $(SRCS) $(DATA_FILES); do \ 56 for f in $(SRCS) $(DATA_FILES); do \
57 rm -f $(datadir)/emotion/examples/$$f ; \ 57 rm -f $(DESTDIR)$(datadir)/emotion/examples/$$f ; \
58 done 58 done
59 59
60if ALWAYS_BUILD_EXAMPLES 60if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/eolian_cxx/Makefile.am b/src/examples/eolian_cxx/Makefile.am
index cb11ac1d1d..ebc13c28dd 100644
--- a/src/examples/eolian_cxx/Makefile.am
+++ b/src/examples/eolian_cxx/Makefile.am
@@ -158,12 +158,12 @@ clean-local:
158 rm -f $(EXTRA_PROGRAMS) $(GENERATED) 158 rm -f $(EXTRA_PROGRAMS) $(GENERATED)
159 159
160install-examples: 160install-examples:
161 $(MKDIR_P) $(datadir)/eolian_cxx/examples 161 $(MKDIR_P) $(DESTDIR)$(datadir)/eolian_cxx/examples
162 cd $(abs_srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eolian_cxx/examples 162 cd $(abs_srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eolian_cxx/examples
163 163
164uninstall-local: 164uninstall-local:
165 for f in $(SRCS) $(DATA_FILES); do \ 165 for f in $(SRCS) $(DATA_FILES); do \
166 rm -f $(datadir)/eolian_cxx/examples/$$f ; \ 166 rm -f $(DESTDIR)$(datadir)/eolian_cxx/examples/$$f ; \
167 done 167 done
168 168
169if ALWAYS_BUILD_EXAMPLES 169if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/ephysics/Makefile.am b/src/examples/ephysics/Makefile.am
index fe9bd51394..7287c14051 100644
--- a/src/examples/ephysics/Makefile.am
+++ b/src/examples/ephysics/Makefile.am
@@ -81,12 +81,12 @@ clean-local:
81 rm -f $(EXTRA_PROGRAMS) 81 rm -f $(EXTRA_PROGRAMS)
82 82
83install-examples: 83install-examples:
84 $(MKDIR_P) $(datadir)/ephysics/examples 84 $(MKDIR_P) $(DESTDIR)$(datadir)/ephysics/examples
85 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(datadir)/ephysics/examples 85 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DESTDIR)$(datadir)/ephysics/examples
86 86
87uninstall-local: 87uninstall-local:
88 for f in $(SRCS) ; do \ 88 for f in $(SRCS) ; do \
89 rm -f $(datadir)/ephysics/examples/$$f ; \ 89 rm -f $(DESTDIR)$(datadir)/ephysics/examples/$$f ; \
90 done 90 done
91 91
92if ALWAYS_BUILD_EXAMPLES 92if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/ethumb_client/Makefile.am b/src/examples/ethumb_client/Makefile.am
index 86f0a20200..65ba6a7c4c 100644
--- a/src/examples/ethumb_client/Makefile.am
+++ b/src/examples/ethumb_client/Makefile.am
@@ -50,12 +50,12 @@ clean-local:
50 rm -f $(EXTRA_PROGRAMS) 50 rm -f $(EXTRA_PROGRAMS)
51 51
52install-examples: 52install-examples:
53 $(MKDIR_P) $(datadir)/ethumb_client/examples 53 $(MKDIR_P) $(DESTDIR)$(datadir)/ethumb_client/examples
54 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/ethumb_client/examples 54 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/ethumb_client/examples
55 55
56uninstall-local: 56uninstall-local:
57 for f in $(SRCS) $(DATA_FILES); do \ 57 for f in $(SRCS) $(DATA_FILES); do \
58 rm -f $(datadir)/ethumb_client/examples/$$f ; \ 58 rm -f $(DESTDIR)$(datadir)/ethumb_client/examples/$$f ; \
59 done 59 done
60 60
61if ALWAYS_BUILD_EXAMPLES 61if ALWAYS_BUILD_EXAMPLES
diff --git a/src/examples/evas/Makefile.am b/src/examples/evas/Makefile.am
index 76a3d98fcc..7b61f4fa57 100644
--- a/src/examples/evas/Makefile.am
+++ b/src/examples/evas/Makefile.am
@@ -442,12 +442,12 @@ clean-local:
442 rm -f $(EXTRA_PROGRAMS) $(EDJS) 442 rm -f $(EXTRA_PROGRAMS) $(EDJS)
443 443
444install-examples: 444install-examples:
445 $(MKDIR_P) $(datadir)/evas/examples 445 $(MKDIR_P) $(DESTDIR)$(datadir)/evas/examples
446 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(EDCS) $(DATA_FILES) $(datadir)/evas/examples 446 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(EDCS) $(DATA_FILES) $(DESTDIR)$(datadir)/evas/examples
447 447
448uninstall-local: 448uninstall-local:
449 for f in $(SRCS) $(EDCS) $(DATA_FILES); do \ 449 for f in $(SRCS) $(EDCS) $(DATA_FILES); do \
450 rm -f $(datadir)/evas/examples/$$f ; \ 450 rm -f $(DESTDIR)$(datadir)/evas/examples/$$f ; \
451 done 451 done
452 452
453EXTRA_DIST = $(EDCS) $(DATA_FILES) 453EXTRA_DIST = $(EDCS) $(DATA_FILES)