-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (24 loc) · 854 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# goreleaser removes the `v` prefix when building and this does too
VERSION = 0.0.2
.PHONY: help
help: ## Print the help documentation
@grep -E '^[/a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
bin/ecs-service-logs:
go build -ldflags "$(LDFLAGS) -X main.version=${VERSION}" -o bin/ecs-service-logs .
.PHONY: test
test:
go test -v ./...
.PHONY: clean
clean: ## Clean all generated files
rm -rf ./bin
rm -rf ./dist
.PHONY: goreleaser_check
goreleaser_check: ## Goreleaser check configuration
goreleaser check
.PHONY: goreleaser_build
goreleaser_build: ## Goreleaser build configuration
goreleaser build --snapshot --rm-dist
.PHONY: goreleaser_test
goreleaser_test: ## Goreleaser test configuration
goreleaser --snapshot --skip-publish --rm-dist
default: help