github.com/lestrrat-go/jwx/v2@v2.0.21/Makefile (about) 1 .PHONY: generate realclean cover viewcover test lint check_diffs imports tidy jwx 2 generate: 3 @go generate 4 @$(MAKE) generate-jwa generate-jwe generate-jwk generate-jws generate-jwt 5 @./tools/cmd/gofmt.sh 6 7 generate-%: 8 @go generate $(shell pwd -P)/$(patsubst generate-%,%,$@) 9 10 realclean: 11 rm coverage.out 12 13 test-cmd: 14 env TESTOPTS="$(TESTOPTS)" ./tools/test.sh 15 16 test: 17 $(MAKE) test-stdlib TESTOPTS= 18 19 test-stdlib: 20 $(MAKE) test-cmd TESTOPTS= 21 22 test-goccy: 23 $(MAKE) test-cmd TESTOPTS="-tags jwx_goccy" 24 25 test-es256k: 26 $(MAKE) test-cmd TESTOPTS="-tags jwx_es256k" 27 28 test-asmbase64: 29 $(MAKE) test-cmd TESTOPTS="-tags jwx_asmbase64" 30 31 test-alltags: 32 $(MAKE) test-cmd TESTOPTS="-tags jwx_asmbase64,jwx_goccy,jwx_es256k" 33 34 cover-cmd: 35 env MODE=cover ./tools/test.sh 36 37 cover: 38 $(MAKE) cover-stdlib 39 40 cover-stdlib: 41 $(MAKE) cover-cmd TESTOPTS= 42 43 cover-goccy: 44 $(MAKE) cover-cmd TESTOPTS="-tags jwx_goccy" 45 46 cover-es256k: 47 $(MAKE) cover-cmd TESTOPTS="-tags jwx_es256k" 48 49 cover-asmbase64: 50 $(MAKE) cover-cmd TESTOPTS="-tags jwx_asmbase64" 51 52 cover-alltags: 53 $(MAKE) cover-cmd TESTOPTS="-tags jwx_asmbase64,jwx_goccy,jwx_es256k" 54 55 smoke-cmd: 56 env MODE=short ./tools/test.sh 57 58 smoke: 59 $(MAKE) smoke-stdlib 60 61 smoke-stdlib: 62 $(MAKE) smoke-cmd TESTOPTS= 63 64 smoke-goccy: 65 $(MAKE) smoke-cmd TESTOPTS="-tags jwx_goccy" 66 67 smoke-es256k: 68 $(MAKE) smoke-cmd TESTOPTS="-tags jwx_es256k" 69 70 smoke-alltags: 71 $(MAKE) smoke-cmd TESTOPTS="-tags jwx_goccy,jwx_es256k" 72 73 viewcover: 74 go tool cover -html=coverage.out 75 76 lint: 77 golangci-lint run ./... 78 79 check_diffs: 80 ./scripts/check-diff.sh 81 82 imports: 83 goimports -w ./ 84 85 tidy: 86 ./scripts/tidy.sh 87 88 jwx: 89 @./tools/cmd/install-jwx.sh