commit 13ed3ffbe74364fd4f72b6381318d40a09b23d68 parent 8656a3068f4b2fab84c55de68dd1c724f28638f9 Author: sin <sin@2f30.org> Date: Mon, 18 Nov 2013 17:01:23 +0000 Add install/uninstall targets to Makefile Diffstat:
M | Makefile | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,3 +1,5 @@ +PREFIX=/usr/local + CFLAGS = -I/usr/local/include LDFLAGS = -L/usr/local/lib LDLIBS = -lm -lcurses -lfftw3 @@ -5,5 +7,13 @@ LDLIBS = -lm -lcurses -lfftw3 BIN = spectrum all: $(BIN) +install: all + @echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin/$(BIN) + @cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin + +uninstall: + @echo removing $(BIN) from $(DESTDIR)$(PREFIX)/bin/$(BIN) + @rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + clean: rm -f $(BIN)