From 6531b1c0a720a63ee3127f9a09f14ba861838b01 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sat, 19 Aug 2023 16:42:00 +0200 Subject: fix: Actually add install rule --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3