-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 753 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 753 Bytes
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
.PHONY: all dotler vet test clean lint race bench dep
# Credit: https://github.com/rightscale/go-boilerplate/blob/master/Makefile
DEPEND=golang.org/x/tools/cmd/cover github.com/Masterminds/glide github.com/golang/lint/golint
dep:
go get -u $(DEPEND)
glide install
all: dotler
dotler: dep vet
go build -v -o build/dotler
vet: lint
go vet ./dotler ./tests ./processor ./wire
test: dep
cd tests && go test -v .
bench: dep
cd tests && go test -v -run=XXX -bench=. -benchtime=60s
race: dep
go build -race -v -o build/dotler.race
clean:
@rm -f build/dotler build/dotler.race
lint:
golint dotler tests
doc: pdf
godoc -http=:6060 -index
pdf:
@bash -c 'tail +3 README.md | pandoc - --latex-engine=xelatex -o README.pdf'
analyse: vet lint