Makefile: fix race condition in `make install`

If run with -j, it's possible for install-bin-links to run before
install-bin and subsequently fail because $(BINDIR) hasn't been created
yet.
pull/343/head
Xiretza 2020-09-28 16:49:19 +02:00 committed by Axel Burri
parent 81c92940c1
commit f391c92d60
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ install-bin:
install -d -m 755 "$(DESTDIR)$(BINDIR)" install -d -m 755 "$(DESTDIR)$(BINDIR)"
install -p -m 755 $(BIN) "$(DESTDIR)$(BINDIR)" install -p -m 755 $(BIN) "$(DESTDIR)$(BINDIR)"
install-bin-links: install-bin-links: install-bin
@echo 'installing symlinks...' @echo 'installing symlinks...'
for name in $(BIN_LINKS); do \ for name in $(BIN_LINKS); do \
ln -s -n -f $(BIN) "$(DESTDIR)$(BINDIR)/$$name"; \ ln -s -n -f $(BIN) "$(DESTDIR)$(BINDIR)/$$name"; \