From: Alejandro Colomar Date: Sun, 9 May 2021 21:39:28 +0000 (+0200) Subject: Makefile: Fix bug when running in parallel X-Git-Tag: man-pages-5.12~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881f51062fbbd5bcfb1c0c02826fe2bfdc516dff;p=thirdparty%2Fman-pages.git Makefile: Fix bug when running in parallel 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 Signed-off-by: Michael Kerrisk --- diff --git a/Makefile b/Makefile index 430090801c..fdfaf96450 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