summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-03 15:01:59 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-03 14:58:52 -0400
commitded5b1e764fdc97403bd829b02106ae8b9af10a4 (patch)
treecdfb40fe34435dcfef70a0a94663b993fc25227e /src/Makefile.am
parentce80bb2688a6eb1f6c3c5fcfea7d3382e15cc1d0 (diff)
build: fix examples dist based on various configure flags
this would previously break if: * cxx bindings were disabled * elua was disabled * base configure disabled examples and dist build disabled examples * base configure disabled examples and dist build enabled examples it still breaks if: * base configure disables examples and dist build enables examples
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cb89e3cacd..cd794557ee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -97,7 +97,12 @@ endif
97include Makefile_Eolian_Js.am 97include Makefile_Eolian_Js.am
98include Makefile_Efl_Js.am 98include Makefile_Efl_Js.am
99 99
100.PHONY: benchmark examples 100PHONIES = benchmark
101if ALWAYS_BUILD_EXAMPLES
102PHONIES += examples
103endif
104
105.PHONY: $(PHONIES)
101 106
102BENCHMARK_SUBDIRS = \ 107BENCHMARK_SUBDIRS = \
103benchmarks/eina \ 108benchmarks/eina \
@@ -150,6 +155,7 @@ check-build: all
150 @$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) 155 @$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
151endif 156endif
152 157
158if ALWAYS_BUILD_EXAMPLES
153examples: all 159examples: all
154 @for d in $(EXAMPLES_SUBDIRS); do \ 160 @for d in $(EXAMPLES_SUBDIRS); do \
155 echo "Making examples in $$d"; \ 161 echo "Making examples in $$d"; \
@@ -161,6 +167,7 @@ install-examples:
161 echo "Making install-examples in $$d"; \ 167 echo "Making install-examples in $$d"; \
162 $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples || exit 1; \ 168 $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples || exit 1; \
163 done 169 done
170endif
164 171
165dist-hook: 172dist-hook:
166 @mkdir -p $(distdir)/tests/elua/data/apps $(distdir)/tests/eolian/data 173 @mkdir -p $(distdir)/tests/elua/data/apps $(distdir)/tests/eolian/data