forked from jacobweinstock/tink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 994 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
help: ## Print this help
@grep --no-filename -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed 's/:.*##/·/' | sort | column -ts '·' -c 120
all: cli server worker ## Build all binaries for host OS and CPU
-include rules.mk
-include lint.mk
-include kube.mk
crosscompile: $(crossbinaries) ## Build all binaries for Linux and all supported CPU arches
images: tink-cli-image tink-server-image tink-worker-image ## Build all docker images
run: crosscompile run-stack ## Builds and runs the Tink stack (tink, db, cli) via docker-compose
test: ## Run tests
go clean -testcache
go test ./... -v
verify: lint check-generated # Verify code style, is lint free, freshness ...
gofumpt -s -d .
generated: pbfiles protomocks ## Generate dynamically created files
check-generated: check-pbfiles check-protomocks ## Check if generated files are up to date
tools: ${toolsBins} ## Build Go based build tools
.PHONY: all check-generated crosscompile generated help images run test tools verify