summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am47
1 files changed, 39 insertions, 8 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 5ad8b97..bc218e0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,8 @@ AUTOMAKE_OPTIONS = subdir-objects
3MAINTAINERCLEANFILES = Makefile.in 3MAINTAINERCLEANFILES = Makefile.in
4BUILT_SOURCES = 4BUILT_SOURCES =
5 5
6SUBDIRS = . benchmarks examples 6DIST_SUBDIRS =
7SUBDIRS =
7 8
8lib_LTLIBRARIES = 9lib_LTLIBRARIES =
9bin_PROGRAMS = 10bin_PROGRAMS =
@@ -47,16 +48,46 @@ include Makefile_Ethumb.am
47 48
48.PHONY: benchmark examples 49.PHONY: benchmark examples
49 50
50benchmark: 51BENCHMARK_SUBDIRS = \
51 @$(MAKE) $(AM_MAKEFLAGS) 52benchmarks/eina \
52 @$(MAKE) $(AM_MAKEFLAGS) -C benchmarks benchmark 53benchmarks/eo
54DIST_SUBDIRS += $(BENCHMARK_SUBDIRS)
53 55
54examples: $(lib_LTLIBRARIES) $(bin_PROGRAMS) 56benchmark: all-am
55 @make 57 @for d in $(BENCHMARK_SUBDIRS); do \
56 @$(MAKE) $(AM_MAKEFLAGS) -C examples examples 58 echo "Making benchmark in $$d"; \
59 $(MAKE) $(AM_MAKEFLAGS) -C $$d benchmark; \
60 done
61
62EXAMPLES_SUBDIRS = \
63examples/eina \
64examples/eo \
65examples/eet \
66examples/evas \
67examples/ecore \
68examples/eio \
69examples/edbus \
70examples/ephysics \
71examples/edje \
72examples/emotion \
73examples/ethumb
74if ALWAYS_BUILD_EXAMPLES
75SUBDIRS += $(EXAMPLES_SUBDIRS)
76else
77DIST_SUBDIRS += $(EXAMPLES_SUBDIRS)
78endif
79
80examples: all-am
81 @for d in $(EXAMPLES_SUBDIRS); do \
82 echo "Making examples in $$d"; \
83 $(MAKE) $(AM_MAKEFLAGS) -C $$d examples; \
84 done
57 85
58install-examples: 86install-examples:
59 @$(MAKE) $(AM_MAKEFLAGS) -C examples install-examples 87 @for d in $(EXAMPLES_SUBDIRS); do \
88 echo "Making install-examples in $$d"; \
89 $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples; \
90 done
60 91
61clean-local: 92clean-local:
62 rm -rf bin/eet/*.gcno 93 rm -rf bin/eet/*.gcno