summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 18:25:43 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 18:25:43 +0000
commit2b672efbdd8e2f13b1ccdc1fd398cb9cd059b3ed (patch)
treedaf310daa76f8ab9690876fbe3502942ad6c7f58
parentf063c393eb4480a895b7db04973bea26da595435 (diff)
efl/edje: fix examples to not build EDJ during regular install
do not use standard files_DATA and filesdir as they would always be executed during compilation. SVN revision: 82223
-rw-r--r--src/examples/edje/Makefile.am38
1 files changed, 21 insertions, 17 deletions
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index d1f5876..2b9d04a 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -16,8 +16,6 @@ AM_V_GEN = $(am__v_GEN_$(V))
16am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) 16am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
17am__v_GEN_0 = @echo " GEN " $@; 17am__v_GEN_0 = @echo " GEN " $@;
18 18
19examplesdir = $(datadir)/edje/examples
20
21if ENABLE_MULTISENSE 19if ENABLE_MULTISENSE
22SND_DIR = -sd $(srcdir) 20SND_DIR = -sd $(srcdir)
23endif 21endif
@@ -76,15 +74,15 @@ endif
76 74
77EDJS = $(EDCS:%.edc=%.edj) 75EDJS = $(EDCS:%.edc=%.edj)
78 76
79filesdir = $(datadir)/edje/examples 77DATA_FILES = \
80files_DATA = \
81$(EDCS) \
82bubble.png \ 78bubble.png \
83bubble-blue.png \ 79bubble-blue.png \
84red.png \ 80red.png \
85test.png \ 81test.png \
86Vera.ttf \ 82Vera.ttf \
87duck.wav \ 83duck.wav
84
85SRCS = \
88edje-codegen-example.c \ 86edje-codegen-example.c \
89edje_example.c \ 87edje_example.c \
90edje-basic.c \ 88edje-basic.c \
@@ -102,13 +100,10 @@ sigtest.c \
102animations2.c \ 100animations2.c \
103edje-basic2.c \ 101edje-basic2.c \
104signals2.c \ 102signals2.c \
105edje-swallow2.c 103edje-swallow2.c \
106 104edje-multisense.c
107if ENABLE_MULTISENSE
108files_DATA += edje-multisense.c
109endif
110 105
111EXTRA_DIST = $(files_DATA) 106EXTRA_DIST = $(EDCS) $(DATA_FILES)
112 107
113AM_CPPFLAGS = \ 108AM_CPPFLAGS = \
114-I. \ 109-I. \
@@ -150,9 +145,7 @@ nodist_edje_codegen_example_SOURCES = \
150codegen_example_generated.c \ 145codegen_example_generated.c \
151codegen_example_generated.h 146codegen_example_generated.h
152 147
153files_DATA += $(EDJS) 148EXTRA_PROGRAMS = \
154
155examples_PROGRAMS = \
156edje-animations \ 149edje-animations \
157edje-basic \ 150edje-basic \
158edje-box \ 151edje-box \
@@ -172,7 +165,7 @@ signals2 \
172edje-swallow2 165edje-swallow2
173 166
174if ENABLE_MULTISENSE 167if ENABLE_MULTISENSE
175examples_PROGRAMS += edje-multisense 168EXTRA_PROGRAMS += edje-multisense
176endif 169endif
177 170
178LDADD = \ 171LDADD = \
@@ -194,5 +187,16 @@ if HAVE_EPHYSICS
194LDADD += $(top_builddir)/src/lib/ephysics/libephysics.la 187LDADD += $(top_builddir)/src/lib/ephysics/libephysics.la
195endif 188endif
196 189
190examples: $(EXTRA_PROGRAMS) $(EDJS)
191
197clean-local: 192clean-local:
198 rm -f *.edj 193 rm -f $(EXTRA_PROGRAMS) $(EDJS)
194
195install-examples:
196 mkdir -p $(datadir)/edje/examples
197 $(install_sh_DATA) -c $(SRCS) $(EDCS) $(DATA_FILES) $(datadir)/edje/examples
198
199uninstall-local:
200 for f in $(SRCS) $(EDCS) $(DATA_FILES); do \
201 rm -f $(datadir)/edje/examples/$$f ; \
202 done