lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 617d63e265c5e5188d39c90c1815a3ea31e640d6
parent d9479cc6857dde4738924eecaa433be7bb5e2b77
Author: Sean Enck <sean@ttypty.com>
Date:   Wed, 18 Jun 2025 09:01:10 -0400

move off makefile

Diffstat:
A.envrc | 1+
DMakefile | 28----------------------------
MREADME.md | 9---------
3 files changed, 1 insertion(+), 37 deletions(-)

diff --git a/.envrc b/.envrc @@ -0,0 +1 @@ +export LOCKBOX_CONFIG_TOML=fake diff --git a/Makefile b/Makefile @@ -1,28 +0,0 @@ -GOFLAGS := -trimpath -buildmode=pie -mod=readonly -modcacherw -buildvcs=false -TARGET := target -VERISON := `git log -n 1 --format=%h` -OBJECT := $(TARGET)/lb -GOTEST := LOCKBOX_CONFIG_TOML=fake go test -CMD := cmd/lb -cmd := "cmd/lb" - -all: setup $(OBJECT) - -setup: - @test -d $(TARGET) || mkdir -p $(TARGET) - -$(OBJECT): go.* cmd/lb/*.go internal/**/*.go internal/**/**/*.go internal/**/**/**/*.* - go build $(GOFLAGS) -ldflags "$(LDFLAGS) -X main.version=$(VERSION)" -o "$(OBJECT)" $(CMD)/main.go - -unittest: - $(GOTEST) ./... - -check: unittest tests - -tests: $(OBJECT) - $(GOTEST) $(CMD)/main_test.go - -clean: - rm -f "$(OBJECT)" - find internal/ $(CMD) -type f -wholename "*testdata*" -delete - find internal/ $(CMD) -type d -empty -delete diff --git a/README.md b/README.md @@ -116,12 +116,3 @@ Setup the `.gitattributes` for the repository to include ``` *.kdbx diff=lb ``` - -## build - -Clone this repository and: -``` -make -``` - -_run `make check` to run tests_