--- Makefile.orig 2013-06-12 22:11:38 UTC +++ Makefile @@ -1,4 +1,6 @@ -.PHONY: all clean install +.PHONY: all clean install install-strip uninstall + +INSTALL_PROGRAM?=install all: bf2c gen_bf @@ -17,4 +19,11 @@ clean: rm bf2c gen_bf $(obj) install: - install bf2c gen_bf $(PREFIX)/bin + mkdir -p $(DESTDIR)$(PREFIX)/bin + $(INSTALL_PROGRAM) bf2c gen_bf $(DESTDIR)$(PREFIX)/bin + +install-strip: + $(MAKE) INSTALL_PROGRAM='install -s' install + +uninstall: + rm -rf $(DESTDIR)$(PREFIX)/bin