lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 2bde996ced3c9656fdabe02dcdca6dfa7b4ab269
parent 9ae56963ec6630e4350e3a9f3e8b137e120495a0
Author: Sean Enck <sean@ttypty.com>
Date:   Sun, 21 Aug 2022 10:13:31 -0400

use of MAIN is deprecated

Diffstat:
MMakefile | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -2,7 +2,6 @@ VERSION := development DESTDIR := BUILD := bin/ TARGET := $(BUILD)lb -MAIN := $(DESTDIR)bin/lb TESTDIR := $(sort $(dir $(wildcard internal/**/*_test.go))) .PHONY: $(TESTDIR) @@ -10,7 +9,7 @@ TESTDIR := $(sort $(dir $(wildcard internal/**/*_test.go))) all: $(TARGET) $(TARGET): cmd/main.go internal/**/*.go go.* - go build -ldflags '-X main.version=$(VERSION) -X main.mainExe=$(MAIN)' -trimpath -buildmode=pie -mod=readonly -modcacherw -o $@ cmd/main.go + go build -ldflags '-X main.version=$(VERSION)' -trimpath -buildmode=pie -mod=readonly -modcacherw -o $@ cmd/main.go $(TESTDIR): cd $@ && go test @@ -22,4 +21,4 @@ clean: rm -rf $(BUILD) install: - install -Dm755 $(BUILD)lb $(MAIN) + install -Dm755 $(BUILD)lb $(DESTDIR)bin/lb