2024-02-20 02:00:40 +00:00
|
|
|
build:
|
2024-10-27 02:17:30 +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/ ./cmd/gspot
|
|
|
|
go build -o dist/ ./cmd/gspot-daemon
|
|
|
|
|
|
|
|
rundaemon: build
|
|
|
|
./dist/gspot-daemon
|
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
|
2024-10-27 02:17:30 +00:00
|
|
|
rm -f /usr/bin/gspot-daemon
|
2024-02-19 02:51:25 +00:00
|
|
|
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
|
2024-10-27 02:17:30 +00:00
|
|
|
cp ./dist/gspot-daemon /usr/bin
|
2024-02-19 02:51:25 +00:00
|
|
|
cp ./completions/_gspot /usr/share/zsh/site-functions/_gspot
|
|
|
|
cp ./completions/gspot /usr/share/bash-completion/completionsgspotg
|