1From fd90d952edaa4b27e62a29fdba7a201288d440eb Mon Sep 17 00:00:00 2001 2From: Wang Mingyu <wangmy@cn.fujitsu.com> 3Date: Sun, 10 May 2020 21:22:53 +0800 4Subject: [PATCH] fix bug of do_compile and do_install 5 6when multiple processes make run in parallel, 7because of dependency error will occur. 8 9Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> 10--- 11 Makefile | 15 ++++++++++++++- 12 1 file changed, 14 insertions(+), 1 deletion(-) 13 14diff --git a/Makefile b/Makefile 15index 1dee3680..bea0a0b2 100644 16--- a/Makefile 17+++ b/Makefile 18@@ -28,9 +28,22 @@ all: $(BUILDDIRS) 19 $(BUILDDIRS): 20 $(MAKE) -C $@ 21 22-multipath multipathd mpathpersist: libmultipath 23+multipath multipathd mpathpersist libmpathpersist : libmultipath 24 mpathpersist: libmpathpersist 25 26+DEPS_ON_MULTIPATH := \ 27+ multipath \ 28+ libmultipath/prioritizers \ 29+ libmultipath/checkers \ 30+ libmultipath/foreign \ 31+ multipathd \ 32+ mpathpersist \ 33+ libmpathpersist 34+ 35+$(DEPS_ON_MULTIPATH:=.install): libmultipath.install 36+mpathpersist.install: libmpathpersist.install 37+libdmmp.install libmultipath/foreign.install: mpathpersist.install 38+ 39 $(BUILDDIRS.clean): 40 $(MAKE) -C ${@:.clean=} clean 41 42-- 432.17.1 44 45