forked from mesos/mesos-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 987 Bytes
/
Makefile
File metadata and controls
48 lines (37 loc) · 987 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
40
41
42
43
44
45
46
47
48
EXAMPLES = examples
PKG_PREFIX := github.com/mesos/mesos-go
LIBS := \
auth \
auth/callback \
auth/sasl \
auth/sasl/mech \
auth/sasl/mech/crammd5 \
detector \
detector/zoo \
executor \
healthchecker \
mesosproto \
mesosutil \
mesosutil/process \
messenger \
scheduler \
upid
.PHONY: format all go-clean pkg-build-install example-scheduler example-executor test test.v
all: go-clean pkg-build-install examples
go-clean:
go clean
pkg-build-install:
go install -v ${LIBS:%=./%}
examples: example-scheduler example-executor
example-scheduler:
rm -rf ${EXAMPLES}/$@
go build -o ${EXAMPLES}/$@ ${EXAMPLES}/example_scheduler.go
example-executor:
rm -rf ${EXAMPLES}/$@
go build -o ${EXAMPLES}/$@ ${EXAMPLES}/example_executor.go
format:
go fmt ${LIBS:%=$(PKG_PREFIX)/%}
vet:
go vet ${LIBS:%=$(PKG_PREFIX)/%}
test test.v:
flags=""; test "$@" != "test.v" || flags="-test.v"; pkg="${TEST}"; test -n "$$pkg" || pkg="${LIBS:%=$(PKG_PREFIX)/%}"; go test $$pkg $$flags