]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Makefile: Fix bug when running in parallel
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 9 May 2021 21:39:28 +0000 (23:39 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 10 May 2021 01:05:42 +0000 (13:05 +1200)
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.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Makefile

index 430090801c77ecb17b280ba8602011c5ed4b739a..fdfaf9645036b58ee117add45d796a36f28120a4 100644 (file)
--- 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