Fix parallel make install

Fixes:
https://bugs.gentoo.org/show_bug.cgi?id=611130
This commit is contained in:
Matt Whitlock
2017-07-01 21:48:13 +02:00
committed by Amadeusz Sławiński
parent 36ac3e29f1
commit 1f3e3b6725

View File

@@ -69,7 +69,7 @@ check: $(TESTBIN)
tests/test-%: tests/test-%.c %.o tests/mallocmock.o tests/macros.h tests/signature.h
$(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ $*.o tests/mallocmock.o
install_bin: screen
install_bin: screen installdirs
-if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
$(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)