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/341/head
Xiretza 2020-09-28 16:49:19 +02:00
parent f40e3adce3
commit ec12340566
No known key found for this signature in database
GPG Key ID: 17B78226F7139993
1 changed files with 1 additions and 1 deletions

View File

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