summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>2014-02-25 18:13:21 -0300
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>2015-03-04 10:15:34 +0100
commit73cc5e63514e41686015a796ccc5b17b50ffe3fe (patch)
tree4f5ec6fb779dedf1577d758326f8337ef3873e2c
parent80ef742b7c31b2b16873aa307edae5d46b848a9a (diff)
downloadefl-73cc5e63514e41686015a796ccc5b17b50ffe3fe.tar.gz
Enable installing examples binaries
Change-Id: If903ba43c2c6591bd68c841b326d0e5a61dcdc10 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
-rw-r--r--src/examples/ecore/Makefile.am17
-rw-r--r--src/examples/ecore_avahi/Makefile.am5
-rw-r--r--src/examples/edje/Makefile.am13
-rw-r--r--src/examples/eet/Makefile.am7
-rw-r--r--src/examples/eina/Makefile.am7
-rw-r--r--src/examples/eio/Makefile.am7
-rw-r--r--src/examples/eldbus/Makefile.am7
-rw-r--r--src/examples/emotion/Makefile.am7
-rw-r--r--src/examples/eo/Makefile.am7
-rw-r--r--src/examples/ephysics/Makefile.am7
-rw-r--r--src/examples/ethumb_client/Makefile.am7
-rw-r--r--src/examples/evas/Makefile.am9
12 files changed, 37 insertions, 63 deletions
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index ac2926b813..b3e0883b64 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -236,9 +236,6 @@ ecore_getopt_example_LDADD = $(ECORE_COMMON_LDADD)
SRCS = \
ecore_animator_example.c \
-ecore_audio_custom.c \
-ecore_audio_playback.c \
-ecore_audio_to_ogg.c \
ecore_client_bench.c \
ecore_compose_get_example.c \
ecore_con_client_example.c \
@@ -278,11 +275,19 @@ ecore_time_functions_example.c \
ecore_timer_example.c \
ecore_getopt_example.c
+if HAVE_ECORE_AUDIO
+#SRCS += \
+#ecore_audio_custom.c \
+#ecore_audio_playback.c \
+#ecore_audio_to_ogg.c
+endif
+
DATA_FILES = red.png Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/ecore/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -295,7 +300,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/ecore/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/ecore_avahi/Makefile.am b/src/examples/ecore_avahi/Makefile.am
index 8ce9469cac..2ba7fb305e 100644
--- a/src/examples/ecore_avahi/Makefile.am
+++ b/src/examples/ecore_avahi/Makefile.am
@@ -32,6 +32,11 @@ $(top_builddir)/src/lib/eina/libeina.la \
examples: $(EXTRA_PROGRAMS)
+EXTRA_DIST = ecore_avahi_example.c
+
+examplesdir = $(libdir)/ecore_avahi/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
+
clean-local:
rm -f $(EXTRA_PROGRAMS)
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 9bc26d0e08..fe8ec77bc7 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -192,12 +192,14 @@ if HAVE_EPHYSICS
LDADD += $(top_builddir)/src/lib/ephysics/libephysics.la
endif
-examples: $(EXTRA_PROGRAMS) $(EDJS)
+examplesdir = $(libdir)/edje/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
+examples_DATA = $(EDJS)
clean-local:
rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED)
-install-examples: $(EDJS)
+install-examples:
mkdir -p $(datadir)/edje/examples
cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DIST_EDCS) $(DATA_FILES) $(datadir)/edje/examples
cd $(builddir) && $(install_sh_DATA) -c $(EDJS) $(datadir)/edje/examples
@@ -206,10 +208,3 @@ uninstall-local:
for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
rm -f $(datadir)/edje/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-if BUILD_LOADER_PNG
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-nodist_pkgdata_DATA = $(EDJS)
-endif
-endif
diff --git a/src/examples/eet/Makefile.am b/src/examples/eet/Makefile.am
index 8095a3de02..62853d249d 100644
--- a/src/examples/eet/Makefile.am
+++ b/src/examples/eet/Makefile.am
@@ -44,7 +44,8 @@ DATA_FILES = Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/eet/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -57,7 +58,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/eet/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/eina/Makefile.am b/src/examples/eina/Makefile.am
index 227dba90b1..4e46fdff80 100644
--- a/src/examples/eina/Makefile.am
+++ b/src/examples/eina/Makefile.am
@@ -146,7 +146,8 @@ DATA_FILES = addr_book.txt chat.xml Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/eina/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -159,7 +160,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/eina/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/eio/Makefile.am b/src/examples/eio/Makefile.am
index ea34e81384..9754369396 100644
--- a/src/examples/eio/Makefile.am
+++ b/src/examples/eio/Makefile.am
@@ -43,7 +43,8 @@ DATA_FILES = Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/eio/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -56,7 +57,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/eio/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/eldbus/Makefile.am b/src/examples/eldbus/Makefile.am
index 6cb4da0686..44c34e0cf3 100644
--- a/src/examples/eldbus/Makefile.am
+++ b/src/examples/eldbus/Makefile.am
@@ -77,7 +77,8 @@ DATA_FILES = Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/eldbus/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -90,7 +91,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/eldbus/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/emotion/Makefile.am b/src/examples/emotion/Makefile.am
index 8d5d9591b9..a028b9b09a 100644
--- a/src/examples/emotion/Makefile.am
+++ b/src/examples/emotion/Makefile.am
@@ -43,7 +43,8 @@ DATA_FILES = Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/emotion/examples
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -56,7 +57,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/emotion/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/eo/Makefile.am b/src/examples/eo/Makefile.am
index 5d3c0e7936..b2a06ee051 100644
--- a/src/examples/eo/Makefile.am
+++ b/src/examples/eo/Makefile.am
@@ -66,7 +66,8 @@ DATA_FILES = Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/eo/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -97,7 +98,3 @@ uninstall-local:
for f in $(eo_evas_SOURCES) ; do \
rm -f $(datadir)/eo/examples/evas/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/ephysics/Makefile.am b/src/examples/ephysics/Makefile.am
index 58eba947fd..6b39f0d452 100644
--- a/src/examples/ephysics/Makefile.am
+++ b/src/examples/ephysics/Makefile.am
@@ -75,7 +75,8 @@ EXTRA_DIST = $(SRCS)
# test_slider.c \
# test_velocity.c
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/ephysics/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -88,7 +89,3 @@ uninstall-local:
for f in $(SRCS) ; do \
rm -f $(datadir)/ephysics/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/ethumb_client/Makefile.am b/src/examples/ethumb_client/Makefile.am
index 899a89af47..9801a6b298 100644
--- a/src/examples/ethumb_client/Makefile.am
+++ b/src/examples/ethumb_client/Makefile.am
@@ -44,7 +44,8 @@ DATA_FILES = Makefile.examples
EXTRA_DIST = $(DATA_FILES)
-examples: $(EXTRA_PROGRAMS)
+examplesdir = $(libdir)/ethumb_client/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
@@ -57,7 +58,3 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/ethumb_client/examples/$$f ; \
done
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-endif
diff --git a/src/examples/evas/Makefile.am b/src/examples/evas/Makefile.am
index fd8e552e00..67b1411ec4 100644
--- a/src/examples/evas/Makefile.am
+++ b/src/examples/evas/Makefile.am
@@ -319,7 +319,9 @@ im1.png \
cube1.png \
Makefile.examples
-examples: $(EXTRA_PROGRAMS) $(EDJS)
+examplesdir = $(libdir)/evas/examples
+examples_PROGRAMS = $(EXTRA_PROGRAMS)
+examples_DATA = $(EDJS)
clean-local:
rm -f $(EXTRA_PROGRAMS) $(EDJS)
@@ -334,8 +336,3 @@ uninstall-local:
done
EXTRA_DIST = $(EDCS) $(DATA_FILES)
-
-if ALWAYS_BUILD_EXAMPLES
-noinst_PROGRAMS = $(EXTRA_PROGRAMS)
-nodist_pkgdata_DATA = $(EDJS)
-endif