unix/Makefile: Fix regression using install on non-GNU systems.

This was fixed previously in 31fc81d3b8 but
regressed in 4af79e7694.

Fixes #5885.
This commit is contained in:
David Lechner 2020-04-08 15:15:02 -05:00 committed by Damien George
parent 8470cd0be9
commit 1bbc15dd15

View file

@ -266,7 +266,8 @@ PREFIX = /usr/local
BINDIR = $(DESTDIR)$(PREFIX)/bin
install: $(PROG)
install -D $(PROG) $(BINDIR)/$(PROG)
install -d $(BINDIR)
install $(PROG) $(BINDIR)/$(PROG)
uninstall:
-rm $(BINDIR)/$(PROG)