aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-19 16:42:00 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-19 16:42:00 +0200
commit6531b1c0a720a63ee3127f9a09f14ba861838b01 (patch)
tree0e3cd141d212404651bf3b54e608631ed32182d4
parentf9f627e179b40466cf219cf87793d783611b407e (diff)
downloadlens-6531b1c0a720a63ee3127f9a09f14ba861838b01.tar.gz
lens-6531b1c0a720a63ee3127f9a09f14ba861838b01.tar.bz2
lens-6531b1c0a720a63ee3127f9a09f14ba861838b01.zip
fix: Actually add install rule
-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)