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 <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-05-09 23:39:28 +02:00 committed by Michael Kerrisk
parent e4b890cdb8
commit 881f51062f
1 changed files with 3 additions and 1 deletions

View File

@ -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