--- Makefile.orig 2014-06-27 11:30:05.064430590 +0800 +++ Makefile 2014-06-27 11:30:18.895417404 +0800 @@ -40,8 +40,8 @@ clean: ${RM} -rf ${TARGETS} install: all - ${INSTALL_BIN} ${PKG} ${PFX}/bin - ${INSTALL_MAN} ${PKG}.${MAN_SFX}.gz ${PFX}/${MAN_DIR} + ${BSD_INSTALL_SCRIPT} ${PKG} $(DESTDIR)${PFX}/bin + ${BSD_INSTALL_MAN} ${PKG}.${MAN_SFX}.gz $(DESTDIR)${PFX}/${MAN_DIR} deinstall: ${RM} -f ${PFX}/bin/${PKG}