This commit is contained in:
abs3nt 2024-02-19 18:00:40 -08:00
parent e6344bef01
commit bafaa8a941
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

View File

@ -1,16 +1,14 @@
build: gspot
build:
go build -ldflags="-X 'git.asdf.cafe/abs3nt/gspot/src/components/cli.Version=$(shell git show -s --date=short --pretty='format:%h (%ad)' HEAD)'" -o dist/ ./cmd/gspot
gspot: $(shell find . -name '*.go')
go build -ldflags="-X 'git.asdf.cafe/abs3nt/gspot/src/components/cli.Version=$(shell git show -s --date=short --pretty='format:%h (%ad)' HEAD)'" -o dist/ .
run:
go run main.go
run: build
./dist/gspot
tidy:
go mod tidy
clean:
rm -rf bin
rm -rf dist
uninstall:
rm -f /usr/bin/gspot