tgbot_misaka_5882f7/Makefile

19 lines
387 B
Makefile
Raw Permalink Normal View History

2023-03-21 13:52:28 +09:00
all: build
2022-11-21 16:17:16 +09:00
build: lint
2022-11-21 04:39:21 +09:00
CGO_ENABLED=0 go build -v -trimpath -ldflags='-s -w'
2022-11-21 16:17:16 +09:00
lint:
golangci-lint run ./...
2022-11-21 04:39:21 +09:00
pack: build
2023-03-07 17:07:50 +09:00
tar --owner root --group root -c tgbot_misaka_5882f7 | zstdmt -9v --long > tgbot_misaka_5882f7.tar.zst
2022-11-21 04:39:21 +09:00
send: pack
2022-11-21 14:43:21 +09:00
wh send tgbot_misaka_5882f7.tar.zst --force-relay
2022-11-21 04:39:21 +09:00
2022-11-21 14:43:21 +09:00
clean:
rm -f tgbot_misaka_5882f7 tgbot_misaka_5882f7.*
2023-03-21 13:52:28 +09:00
.PHONY: all build pack send clean test