File: Makefile

package info (click to toggle)
golang-github-mozilla-scribe 0.0~git20220110.3fd4271-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: makefile: 33
file content (41 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (2)
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