go-pingbot/Makefile

20 lines
275 B
Makefile
Raw Normal View History

2021-10-22 20:27:08 +00:00
BINARY_NAME := pingbot.out
# executables
GO := go
GORELEASER := goreleaser
# build flags
BUILD_FLAGS :=
2021-07-11 21:19:37 +00:00
build:
2021-11-10 13:38:54 +00:00
$(GO) mod tidy
2021-10-22 20:27:08 +00:00
$(GO) build $(BUILD_FLAGS) -o $(BINARY_NAME)
2021-07-11 21:19:37 +00:00
snapshot:
2021-10-22 20:27:08 +00:00
$(GORELEASER) --snapshot --rm-dist
2021-07-11 21:19:37 +00:00
clean:
2021-10-22 20:27:08 +00:00
$(GO) clean
rm -rf pingbot* dist/