Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 8dcd73b45a660dbdc560676835ba46f495334f14 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 13 Jun 2017 18:10:06 +0300 |
| 4 | Subject: [PATCH] Run installation commands as shell jobs |
| 5 | |
| 6 | This greatly speeds up installation time on multi-core systems. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 10 | --- |
| 11 | src/fullcolor/Makefile.am | 3 ++- |
| 12 | src/spinner/Makefile.am | 5 +++-- |
| 13 | src/symbolic/Makefile.am | 7 ++++--- |
| 14 | 3 files changed, 9 insertions(+), 6 deletions(-) |
| 15 | |
| 16 | diff --git a/src/fullcolor/Makefile.am b/src/fullcolor/Makefile.am |
| 17 | index 1c940a5..3998ee6 100644 |
| 18 | --- a/src/fullcolor/Makefile.am |
| 19 | +++ b/src/fullcolor/Makefile.am |
| 20 | @@ -9,9 +9,10 @@ install-data-local: |
| 21 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \ |
| 22 | context="`dirname $$file`"; \ |
| 23 | $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ |
| 24 | - $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ |
| 25 | + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \ |
| 26 | done; \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame^] | 27 | - done; |
| 28 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 29 | + wait |
| 30 | |
| 31 | ## FIXME we should add a way to remove links generated by icon mapping |
| 32 | uninstall-local: |
| 33 | diff --git a/src/spinner/Makefile.am b/src/spinner/Makefile.am |
| 34 | index 86f4d7c..3fae8c1 100644 |
| 35 | --- a/src/spinner/Makefile.am |
| 36 | +++ b/src/spinner/Makefile.am |
| 37 | @@ -24,13 +24,14 @@ install-data-local: |
| 38 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \ |
| 39 | context="`dirname $$file`"; \ |
| 40 | $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ |
| 41 | - $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ |
| 42 | + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \ |
| 43 | done; \ |
| 44 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \ |
| 45 | context="`dirname $$file`"; \ |
| 46 | $(mkdir_p) $(DESTDIR)$(themedir)/scalable-up-to-32/$$context; \ |
| 47 | - $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file; \ |
| 48 | + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file & \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame^] | 49 | - done |
| 50 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 51 | + wait |
| 52 | |
| 53 | uninstall-local: |
| 54 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \ |
| 55 | diff --git a/src/symbolic/Makefile.am b/src/symbolic/Makefile.am |
| 56 | index 24aac9b..61ba071 100644 |
| 57 | --- a/src/symbolic/Makefile.am |
| 58 | +++ b/src/symbolic/Makefile.am |
| 59 | @@ -25,18 +25,19 @@ install-data-local: |
| 60 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \ |
| 61 | context="`dirname $$file`"; \ |
| 62 | $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ |
| 63 | - $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ |
| 64 | + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \ |
| 65 | done; \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame^] | 66 | - done |
| 67 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 68 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \ |
| 69 | context="`dirname $$file`"; \ |
| 70 | $(mkdir_p) $(DESTDIR)$(themedir)/scalable/$$context; \ |
| 71 | - $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $(DESTDIR)$(themedir)/scalable/$$file; \ |
| 72 | + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $(DESTDIR)$(themedir)/scalable/$$file & \ |
| 73 | for size in $(symbolic_encode_sizes); do \ |
| 74 | $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ |
| 75 | - $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o $(DESTDIR)$(themedir)/$$size/$$context; \ |
| 76 | + $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o $(DESTDIR)$(themedir)/$$size/$$context & \ |
| 77 | done \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame^] | 78 | - done |
| 79 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 80 | + wait |
| 81 | |
| 82 | uninstall-local: |
| 83 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \ |
| 84 | -- |
| 85 | 2.11.0 |
| 86 | |