17 lines
366 B
Makefile
17 lines
366 B
Makefile
build: lint
|
|
CGO_ENABLED=0 go build -v -trimpath -ldflags='-s -w'
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
pack: build
|
|
tar --owner root --group root -c tgbot_misaka_5882f7 | zstdmt -9v --long > tgbot_misaka_5882f7.tar.zst
|
|
|
|
send: pack
|
|
wh send tgbot_misaka_5882f7.tar.zst --force-relay
|
|
|
|
clean:
|
|
rm -f tgbot_misaka_5882f7 tgbot_misaka_5882f7.*
|
|
|
|
.PHONY: build pack send clean
|