gspot/Makefile
abs3nt bafaa8a941
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
make
2024-02-19 18:00:40 -08:00

22 lines
539 B
Makefile

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
run: build
./dist/gspot
tidy:
go mod tidy
clean:
rm -rf dist
uninstall:
rm -f /usr/bin/gspot
rm -f /usr/share/zsh/site-functions/_gspot
rm -f /usr/share/bash-completion/completions/gspot
install:
cp ./dist/gspot /usr/bin
cp ./completions/_gspot /usr/share/zsh/site-functions/_gspot
cp ./completions/gspot /usr/share/bash-completion/completionsgspotg