commit ceb1dee391e7bf6cba3f8ef9a264717247c8fb71 parent bd718da23726e84d4e20a93db4d4522c6dbe5ae6 Author: lostd <lostd@2f30.org> Date: Sun, 20 Jul 2014 17:05:05 +0300 Add basic targets and flags Diffstat:
M | Makefile | | | 9 | +++++++++ |
A | config.mk | | | 1 | + |
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -3,3 +3,12 @@ all: $(BIN) clean: rm -f $(BIN) + +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/ + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + +include config.mk diff --git a/config.mk b/config.mk @@ -0,0 +1 @@ +PREFIX = /usr/local