commit 5773c9bdcd061d2f9d417d63d1f0c2f8bcf8f89d parent 63e5115f5ac0243b1eba2b93f145eb92253b640b Author: lostd <lostd@2f30.org> Date: Tue, 19 Nov 2013 10:58:19 +0200 Use install instead of cp and remove noecho Diffstat:
M | Makefile | | | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -PREFIX=/usr/local +PREFIX = /usr/local CFLAGS = -I/usr/local/include LDFLAGS = -L/usr/local/lib @@ -8,12 +8,11 @@ BIN = spectrum all: $(BIN) install: all - @echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin/$(BIN) - @cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin + install -d $(DESTDIR)$(PREFIX)/bin + install $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN) uninstall: - @echo removing $(BIN) from $(DESTDIR)$(PREFIX)/bin/$(BIN) - @rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) clean: rm -f $(BIN)