mirror of https://github.com/digint/btrbk
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
parent
81c92940c1
commit
f391c92d60
2
Makefile
2
Makefile
|
@ -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"; \
|
||||||
|
|
Loading…
Reference in New Issue