-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 738 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 738 Bytes
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
.PHONY: help
help: #! Show this help message
@echo 'Usage: make [target] ... '
@echo ''
@echo 'Targets:'
@grep -h -F '#!' $(MAKEFILE_LIST) | grep -v grep | sed 's/:.*#!/:/' | column -t -s":"
.PHONY: prepare
prepare: #! Setup the project for development
@go mod tidy
.PHONY: test
test: #! Run quality control tests
test: prepare lint unittest
.PHONY: unittest
unittest: #! Run the unit tests
@go test ./test
.PHONY: lint
lint: #! Run helm lint against this chart
@helm lint .
.PHONY: package
package: #! Build the helm package (e.g. ld-relay-x.y.z.tgz)
@helm package .
.PHONY: update-golden-files
update-golden-files: #! Update unit test golden files (WARNING: Will change your local fs)
@go test ./test -update-golden=true