-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
41 lines (29 loc) · 869 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PROJS = scribe scribecmd scribevulnpolicy
GO = GO15VENDOREXPERIMENT=1 go
GOLINT = golint
all: $(PROJS) runtests
scribe:
$(GO) install github.com/mozilla/scribe
scribecmd:
$(GO) install github.com/mozilla/scribe/scribecmd
scribevulnpolicy:
$(GO) install github.com/mozilla/scribe/scribevulnpolicy
runtests: gotests
gotests:
$(GO) test -v -covermode=count -coverprofile=coverage.out github.com/mozilla/scribe
showcoverage: gotests
$(GO) tool cover -html=coverage.out
lint:
$(GOLINT) $(PROJECT)
vet:
$(GO) vet $(PROJECT)
go_vendor_dependencies:
govend -u
rm -rf vendor/github.com/mozilla/scribe
[ $$(ls -A vendor/github.com/mozilla) ] || rm -r vendor/github.com/mozilla
[ $$(ls -A vendor/github.com) ] || rm -r vendor/github.com
clean:
rm -rf pkg
rm -f bin/*
cd test && $(MAKE) clean
.PHONY: $(PROJS) runtests gotests showcoverage lint vet clean