diff options
Diffstat (limited to 'vendor/github.com/jmespath/go-jmespath/Makefile')
-rw-r--r-- | vendor/github.com/jmespath/go-jmespath/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/vendor/github.com/jmespath/go-jmespath/Makefile b/vendor/github.com/jmespath/go-jmespath/Makefile new file mode 100644 index 0000000..a828d28 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/Makefile | |||
@@ -0,0 +1,44 @@ | |||
1 | |||
2 | CMD = jpgo | ||
3 | |||
4 | help: | ||
5 | @echo "Please use \`make <target>' where <target> is one of" | ||
6 | @echo " test to run all the tests" | ||
7 | @echo " build to build the library and jp executable" | ||
8 | @echo " generate to run codegen" | ||
9 | |||
10 | |||
11 | generate: | ||
12 | go generate ./... | ||
13 | |||
14 | build: | ||
15 | rm -f $(CMD) | ||
16 | go build ./... | ||
17 | rm -f cmd/$(CMD)/$(CMD) && cd cmd/$(CMD)/ && go build ./... | ||
18 | mv cmd/$(CMD)/$(CMD) . | ||
19 | |||
20 | test: | ||
21 | go test -v ./... | ||
22 | |||
23 | check: | ||
24 | go vet ./... | ||
25 | @echo "golint ./..." | ||
26 | @lint=`golint ./...`; \ | ||
27 | lint=`echo "$$lint" | grep -v "astnodetype_string.go" | grep -v "toktype_string.go"`; \ | ||
28 | echo "$$lint"; \ | ||
29 | if [ "$$lint" != "" ]; then exit 1; fi | ||
30 | |||
31 | htmlc: | ||
32 | go test -coverprofile="/tmp/jpcov" && go tool cover -html="/tmp/jpcov" && unlink /tmp/jpcov | ||
33 | |||
34 | buildfuzz: | ||
35 | go-fuzz-build github.com/jmespath/go-jmespath/fuzz | ||
36 | |||
37 | fuzz: buildfuzz | ||
38 | go-fuzz -bin=./jmespath-fuzz.zip -workdir=fuzz/testdata | ||
39 | |||
40 | bench: | ||
41 | go test -bench . -cpuprofile cpu.out | ||
42 | |||
43 | pprof-cpu: | ||
44 | go tool pprof ./go-jmespath.test ./cpu.out | ||