--- Makefile.orig 2014-06-16 23:02:51.808174124 +0800 +++ Makefile 2014-06-16 23:03:13.422174462 +0800 @@ -48,9 +48,9 @@ depend: gcc -E -MM *.c > .depend install: xglurbules xglurbules-noshm ${MAN_FILE} - ${INSTALL} xglurbules ${BIN_DIR} - ${INSTALL} xglurbules-noshm ${BIN_DIR} - ${INSTALL} ${MAN_FILE} ${MAN_DIR} + ${INSTALL} xglurbules $(DESTDIR)${BIN_DIR} + ${INSTALL} xglurbules-noshm $(DESTDIR)${BIN_DIR} + ${INSTALL} ${MAN_FILE} $(DESTDIR)${MAN_DIR} xglurbules.1.gz: xglurbules.1 ${COMPRESS} xglurbules.1 -c > xglurbules.1.gz