forked from chef/automate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (30 loc) · 767 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
GOFILES=$(shell go list ./... | grep -v '/vendor|asset\.go|proto/' | sed 's/^_//')
GOPATH=$(shell go env GOPATH)
include ../../Makefile.common_go
default: ci
ci: build
review: lint vet
# Utilities
build:
go build cmd/event-service/event-service.go
clean:
@echo "Removing artifacts..."
rm -f event-service
proto:
cd ../../ && hab studio run 'source .studiorc; compile_go_protobuf_component event-service'
test:
GOMAXPROCS=4 go test -v -cover $(GOFILES)
vet:
go vet $(GOFILES)
run:
go run cmd/event-service/event-service.go serve --config config.dev.toml
# Etc
edit:
$(EDITOR) Makefile
view:
$(PAGER) Makefile || cat Makefile
.PHONY: ci review setup clean
.PHONY: build clean fmt lint proto test vet
.PHONY: edit view
.PHONY: run
.PHONY: generate