haunt/Makefile

42 lines
1.0 KiB
Makefile
Raw Normal View History

2023-03-04 22:22:03 +00:00
pkgname := haunt
build: ${pkgname}
${pkgname}: $(shell find . -name '*.go')
mkdir -p bin
go build -o bin/${pkgname} .
decode:
2023-03-07 01:49:03 +00:00
go run ./hack/unpack/main.go
pack-site:
go-bindata -pkg haunt -o src/haunt/bindata.go -fs assets/...
2023-03-04 22:22:03 +00:00
completions:
mkdir -p completions
./bin/${pkgname} completion zsh > completions/_${pkgname}
./bin/${pkgname} completion bash > completions/${pkgname}
./bin/${pkgname} completion fish > completions/${pkgname}.fish
run:
go run main.go
tidy:
go mod tidy
clean:
rm -rf bin
2023-03-04 22:22:03 +00:00
rm -rf completions
rm -rf assets
2023-03-04 22:22:03 +00:00
uninstall:
rm -f /usr/local/bin/${pkgname}
2023-03-04 22:22:03 +00:00
rm -f /usr/share/zsh/site-functions/_${pkgname}
rm -f /usr/share/bash-completion/completions/${pkgname}
rm -f /usr/share/fish/vendor_completions.d/${pkgname}.fish
install:
cp bin/${pkgname} /usr/local/bin
2023-03-04 22:22:03 +00:00
bin/${pkgname} completion zsh > /usr/share/zsh/site-functions/_${pkgname}
bin/${pkgname} completion bash > /usr/share/bash-completion/completions/${pkgname}
bin/${pkgname} completion fish > /usr/share/fish/vendor_completions.d/${pkgname}.fish