2017-07-19 22:45:17 +03:00
|
|
|
PROJS = scribe scribecmd scribevulnpolicy
|
2016-03-18 20:17:20 +03:00
|
|
|
GO = GO15VENDOREXPERIMENT=1 go
|
|
|
|
GOLINT = golint
|
2015-07-07 12:02:58 +03:00
|
|
|
|
2016-03-18 20:17:20 +03:00
|
|
|
all: $(PROJS) runtests
|
2015-07-07 12:02:58 +03:00
|
|
|
|
|
|
|
scribe:
|
2016-03-18 20:17:20 +03:00
|
|
|
$(GO) install github.com/mozilla/scribe
|
2015-07-07 12:02:58 +03:00
|
|
|
|
|
|
|
scribecmd:
|
2016-03-18 20:17:20 +03:00
|
|
|
$(GO) install github.com/mozilla/scribe/scribecmd
|
2015-07-07 12:02:58 +03:00
|
|
|
|
2016-01-06 23:28:54 +03:00
|
|
|
scribevulnpolicy:
|
2016-03-18 20:17:20 +03:00
|
|
|
$(GO) install github.com/mozilla/scribe/scribevulnpolicy
|
2016-01-06 23:28:54 +03:00
|
|
|
|
2017-07-20 00:59:11 +03:00
|
|
|
runtests: gotests
|
2015-07-15 23:56:30 +03:00
|
|
|
|
|
|
|
gotests:
|
2016-03-18 20:17:20 +03:00
|
|
|
$(GO) test -v -covermode=count -coverprofile=coverage.out github.com/mozilla/scribe
|
|
|
|
|
|
|
|
showcoverage: gotests
|
|
|
|
$(GO) tool cover -html=coverage.out
|
2015-07-15 23:56:30 +03:00
|
|
|
|
2016-03-18 20:17:20 +03:00
|
|
|
lint:
|
|
|
|
$(GOLINT) $(PROJECT)
|
|
|
|
|
|
|
|
vet:
|
|
|
|
$(GO) vet $(PROJECT)
|
2015-07-07 23:27:18 +03:00
|
|
|
|
2016-03-22 00:41:45 +03:00
|
|
|
go_vendor_dependencies:
|
2017-07-18 17:54:41 +03:00
|
|
|
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
|
2016-03-22 00:41:45 +03:00
|
|
|
|
2015-07-07 12:02:58 +03:00
|
|
|
clean:
|
|
|
|
rm -rf pkg
|
2015-07-07 23:27:18 +03:00
|
|
|
rm -f bin/*
|
|
|
|
cd test && $(MAKE) clean
|
2016-03-18 20:17:20 +03:00
|
|
|
|
2017-07-20 00:59:11 +03:00
|
|
|
.PHONY: $(PROJS) runtests gotests showcoverage lint vet clean
|