gspot/Makefile

22 lines
529 B
Makefile
Raw Normal View History

2024-02-20 02:00:40 +00:00
build:
2024-02-23 20:48:32 +00:00
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/ .
2024-02-18 16:53:32 +00:00
2024-02-20 02:00:40 +00:00
run: build
./dist/gspot
2024-02-18 16:53:32 +00:00
tidy:
go mod tidy
clean:
2024-02-20 02:00:40 +00:00
rm -rf dist
2024-02-18 16:53:32 +00:00
uninstall:
2024-02-19 02:51:25 +00:00
rm -f /usr/bin/gspot
rm -f /usr/share/zsh/site-functions/_gspot
rm -f /usr/share/bash-completion/completions/gspot
2024-02-18 16:53:32 +00:00
install:
2024-02-19 02:51:25 +00:00
cp ./dist/gspot /usr/bin
cp ./completions/_gspot /usr/share/zsh/site-functions/_gspot
cp ./completions/gspot /usr/share/bash-completion/completionsgspotg