add install as target, calling "go install"

convenient for local testing, i'm often running "mox localserve", often helpful
if it's the latest.
This commit is contained in:
Mechiel Lukkien 2024-04-14 12:37:52 +02:00
parent 1ea851bb53
commit 4b459af4a8
No known key found for this signature in database

View file

@ -18,6 +18,9 @@ build1:
# build again, api json files above are embedded and new frontend code generated # build again, api json files above are embedded and new frontend code generated
CGO_ENABLED=0 go build CGO_ENABLED=0 go build
install: build0 frontend
CGO_ENABLED=0 go install
test: test:
CGO_ENABLED=0 go test -shuffle=on -coverprofile cover.out ./... CGO_ENABLED=0 go test -shuffle=on -coverprofile cover.out ./...
go tool cover -html=cover.out -o cover.html go tool cover -html=cover.out -o cover.html