aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 76c271a..cf9768d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
-BIN=lens
+BIN?=lens
+PREFIX?=/usr/local
+BINDIR?=$(PREFIX)/bin
+
OUT=./bin/$(BIN)
SERVER=./cmd/server/main.go
@@ -21,6 +24,9 @@ endif
all: build
+install: build
+ install -Dm755 $(OUT) $(BINDIR)/$(BIN)
+
build: sass tmpl
$(GO_BUILD) -o $(OUT) $(SERVER)