chore(Makefile): update

This commit is contained in:
Oskar 2021-10-22 22:27:08 +02:00 committed by GitHub
parent 538766c1fc
commit d211ea49b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -1,11 +1,19 @@
BINARY_NAME=pingbot.out
BINARY_NAME := pingbot.out
# executables
GO := go
GORELEASER := goreleaser
# build flags
BUILD_FLAGS :=
build:
go build -o ${BINARY_NAME}
$(GO) build $(BUILD_FLAGS) -o $(BINARY_NAME)
snapshot:
goreleaser --snapshot --rm-dist
$(GORELEASER) --snapshot --rm-dist
clean:
go clean
$(GO) clean
rm -rf pingbot* dist/