this repo has no description
1SHELL = /bin/bash
2.SHELLFLAGS = -o pipefail -c
3
4.PHONY: help
5help: ## Print info about all commands
6 @echo "Commands:"
7 @echo
8 @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
9
10.PHONY: build
11build: ## Build all executables
12 go build -o oauth .
13
14.PHONY: all
15all: build
16
17.PHONY: test
18test: ## Run tests
19 go clean -testcache && go test -v ./...
20
21.PHONY: lint
22lint: ## Verify code style and run static checks
23 go vet ./...
24 test -z $(gofmt -l ./...)
25
26.PHONY: fmt
27fmt: ## Run syntax re-formatting (modify in place)
28 go fmt ./...
29
30.PHONY: check
31check: ## Compile everything, checking syntax (does not output binaries)
32 go build ./...
33
34.PHONY: test-server
35test-server: ## Run the test server
36 go run ./cmd/client_test
37
38.PHONY: test-jwks
39test-jwks: ## Create a test jwks file
40 go run ./cmd/cmd generate-jwks --prefix demo
41
42.env:
43 if [ ! -f ".env" ]; then cp example.dev.env .env; fi