Debian Codegraph @

Makefile

raw
1 PROJS = scribe scribecmd scribevulnpolicy
2 GO = GO15VENDOREXPERIMENT=1 go
3 GOLINT = golint
4
5 all: $(PROJS) runtests
6
7 scribe:
8 $(GO) install github.com/mozilla/scribe
9
10 scribecmd:
11 $(GO) install github.com/mozilla/scribe/scribecmd
12
13 scribevulnpolicy:
14 $(GO) install github.com/mozilla/scribe/scribevulnpolicy
15
16 runtests: gotests
17
18 gotests:
19 $(GO) test -v -covermode=count -coverprofile=coverage.out github.com/mozilla/scribe
20
21 showcoverage: gotests
22 $(GO) tool cover -html=coverage.out
23
24 lint:
25 $(GOLINT) $(PROJECT)
26
27 vet:
28 $(GO) vet $(PROJECT)
29
30 go_vendor_dependencies:
31 govend -u
32 rm -rf vendor/github.com/mozilla/scribe
33 [ $$(ls -A vendor/github.com/mozilla) ] || rm -r vendor/github.com/mozilla
34 [ $$(ls -A vendor/github.com) ] || rm -r vendor/github.com
35
36 clean:
37 rm -rf pkg
38 rm -f bin/*
39 cd test && $(MAKE) clean
40
41 .PHONY: $(PROJS) runtests gotests showcoverage lint vet clean