-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
45 lines (32 loc) · 978 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
42
43
44
45
BUILD_ARGS=
DEBUG_ARGS= -gcflags "-N -l"
# List of directories is needed in order to avoid running checks against vendor
# If your project has multiple packages, consider moving them into a version
# directory. For example v1/config, v1/handlers, ...
DIRS := sequencer
default: build
debug: BUILD_ARGS+=$(DEBUG_ARGS)
debug: build
# TODO Enable golint here
build: deps fmt get vet lint test
go build $(BUILD_ARGS)
fmt:
go fmt $(DIRS:%=github.com/kellydunn/go-step-sequencer/%/...)
get:
go get
test:
go test github.com/kellydunn/go-step-sequencer
go test $(DIRS:%=github.com/kellydunn/go-step-sequencer/%/...)
bench:
go test -run=XXX -bench=. github.com/kellydunn/go-step-sequencer
errcheck: deps
errcheck $(DIRS:%=github.com/kellydunn/go-step-sequencer/%/...)
lint: deps
golint $(DIRS)
vet: deps
go vet $(DIRS:%=github.com/kellydunn/go-step-sequencer/%/...)
deps:
go get github.com/kisielk/errcheck
go get github.com/golang/lint/golint
clean:
go clean