install -d will create all components anyway, so install -d $(DESTDIR) followed by install -d $(DESTDIR)$(BINDIR) is redundant. Not calling install -d $(DESTDIR) will also allow an unset DESTDIR to act as '/', causing sudo make install to install the package in the filesystem root (currently fails with "missing file operand" due to DESTDIR being empty).
install -d
will create all components anyway, soinstall -d $(DESTDIR)
followed byinstall -d $(DESTDIR)$(BINDIR)
is redundant. Not callinginstall -d $(DESTDIR)
will also allow an unset DESTDIR to act as '/', causingsudo make install
to install the package in the filesystem root (currently fails with "missing file operand" due to DESTDIR being empty).