tgbot_misaka_5882f7/Makefile

17 lines
360 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 -15v > 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