Thread (1 message) 1 message, 1 author, 2021-03-20
DORMANTno replies

[PATCH v2 2/3] Makefile: Fix bug when running in parallel

From: Alejandro Colomar <hidden>
Date: 2021-03-20 23:23:11
Subsystem: kernel build + files below scripts/ (unless maintained elsewhere), the rest · Maintainers: Nathan Chancellor, Nicolas Schier, Linus Torvalds

Prerequisites can run in parallel.  This wouldn't make any sense
when uninstalling and installing again.

For that, use consecutive commands, which run one after the other
even with multiple cores.

Cc: Debian man-pages <redacted>
Cc: "Dr. Tobias Quathamer" <redacted>
Signed-off-by: Alejandro Colomar <redacted>
---

v2: No changes; resend

 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a7a4ca284..683dd12be 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,9 @@ INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_DIR = $(INSTALL) -m 755 -d
 
 .PHONY: all
-all: remove install
+all:
+	$(MAKE) uninstall;
+	$(MAKE) install;
 
 # Use with
 #  make HTOPTS=whatever html
-- 
2.31.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help