tgbot_misaka_5882f7/Makefile

19 lines
387 B
Makefile

all: build
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: all build pack send clean test