-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
33 lines (24 loc) · 841 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
.DEFAULT_GOAL := help
verify: verify-gofmt ## Run verifications. Example: make verify
.PHONY: verify
verify-gofmt: ## Run gofmt verification. Example: make verify-gofmt
scripts/verify-gofmt.sh
.PHONY: verify-gofmt
test: test-unit ## Run tests. Example: make test
.PHONY: test
test-unit: ## Run unit tests. Example: make test-unit
go test ./...
.PHONY: test-unit
build: ## Build the executable. Example: make build
@go version
go build -mod=vendor $(DEBUGFLAGS)
.PHONY: build
vendor: ## Vendor dependencies. Example: make vendor
go mod vendor
.PHONY: vendor
clean: ## Clean up the workspace. Example: make clean
rm -f openshift-goimports
.PHONY: clean
help: ## Print this help. Example: make help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: help