]> Sergey Matveev's repositories - nnn.git/commitdiff
Makefile: don't use non-portable -t option (#83)
authorilovezfs <ilovezfs@icloud.com>
Wed, 28 Feb 2018 08:47:35 +0000 (00:47 -0800)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 28 Feb 2018 08:47:35 +0000 (14:17 +0530)
This fixes the build with the BSD install command by eschewing the GNU
specific -t option, which is not portable.

Makefile

index b20fa8f85809693e471465a420e6cf9c87aa7433..239a001ace2bb9a0bef2866c491c3a473785fd94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,9 +33,9 @@ debug: $(SRC)
 
 install: all
        install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
-       install -m 0755 -t $(DESTDIR)$(PREFIX)/bin $(BIN) $(PLAYER)
+       install -m 0755 $(BIN) $(PLAYER) $(DESTDIR)$(PREFIX)/bin
        install -m 0755 -d $(DESTDIR)$(MANPREFIX)/man1
-       install -m 0644 -t $(DESTDIR)$(MANPREFIX)/man1 $(BIN).1
+       install -m 0644 $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
 
 uninstall:
        $(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN)