summaryrefslogtreecommitdiff
path: root/src/examples/eio.mk
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-18 17:55:09 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-08-03 13:09:22 +0200
commit310d6d972dbe9f323dd3783158608687b52b6bca (patch)
treeac5b27d299e562071697bae3f77b6363c6fd66db /src/examples/eio.mk
parentab1fd96363b630df1f5b3cb145eade3466b74b75 (diff)
build: move src/examples/ to a single makefile
this greatly improves build times by improving parallelizing, though it does introduce more BUILT_SOURCES usage which causes builds with cxx bindings to take significantly longer fix T7157 ref T7154 Differential Revision: https://phab.enlightenment.org/D6633
Diffstat (limited to 'src/examples/eio.mk')
-rw-r--r--src/examples/eio.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/examples/eio.mk b/src/examples/eio.mk
new file mode 100644
index 0000000..3f34c9b
--- /dev/null
+++ b/src/examples/eio.mk
@@ -0,0 +1,38 @@
1EXTRA_PROGRAMS += \
2eio/eio_file_ls \
3eio/eio_file_copy \
4eio/efl_io_manager_open \
5eio/efl_io_manager_open_multi \
6eio/efl_io_manager_ls \
7eio/eio_sentry
8
9eio_eio_file_ls_SOURCES = eio/eio_file_ls.c
10eio_eio_file_copy_SOURCES = eio/eio_file_copy.c
11eio_efl_io_manager_open_SOURCES = eio/efl_io_manager_open.c
12eio_efl_io_manager_open_multi_SOURCES = eio/efl_io_manager_open_multi.c
13eio_efl_io_manager_ls_SOURCES = eio/efl_io_manager_ls.c
14eio_eio_sentry_SOURCES = eio/eio_sentry.c
15
16EIO_SRCS = \
17eio/eio_file_ls.c \
18eio/eio_file_copy.c \
19eio/efl_io_manager_open.c \
20eio/efl_io_manager_open_multi.c \
21eio/efl_io_manager_ls.c \
22eio/eio_sentry.c
23
24EIO_DATA_FILES = eio/Makefile.examples
25
26DATA_FILES += $(EIO_DATA_FILES)
27
28install-examples-eio:
29 $(MKDIR_P) $(DESTDIR)$(datadir)/eio/examples
30 cd $(srcdir) && $(install_sh_DATA) -c $(EIO_SRCS) $(EIO_DATA_FILES) $(DESTDIR)$(datadir)/eio/examples
31
32uninstall-local-eio:
33 for f in $(EIO_SRCS) $(DATA_FILES); do \
34 rm -f $(DESTDIR)$(datadir)/eio/examples/$$f ; \
35 done
36
37INSTALL_EXAMPLES += install-examples-eio
38UNINSTALL_EXAMPLES += uninstall-local-eio