forked from Cloud-Foundations/Dominator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (53 loc) · 1.63 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
all:
CGO_ENABLED=0 go install ./cmd/*
@cd c; make
build-darwin:
(CGO_ENABLED=0 GOOS=darwin go build ./cmd/*)
build-linux:
(CGO_ENABLED=0 GOOS=linux go build ./cmd/*)
build-windows:
(CGO_ENABLED=0 GOOS=windows go build ./cmd/*)
install-darwin:
(CGO_ENABLED=0 GOOS=darwin go install ./cmd/*)
install-linux:
(CGO_ENABLED=0 GOOS=linux go install ./cmd/*)
install-windows:
(CGO_ENABLED=0 GOOS=windows go install ./cmd/*)
disruption-manager.tarball:
@./scripts/make-tarball disruption-manager -C $(ETCDIR) ssl
dominator.tarball:
@./scripts/make-tarball dominator -C $(ETCDIR) ssl
filegen-server.tarball:
@./scripts/make-tarball filegen-server -C $(ETCDIR) ssl
fleet-manager.tarball:
@./scripts/make-tarball fleet-manager -C $(ETCDIR) ssl
hypervisor.tarball:
@./scripts/make-tarball hypervisor init.d/virtual-machines.* \
-C $(ETCDIR) ssl
image-unpacker.tarball:
@./scripts/make-tarball image-unpacker \
scripts/image-pusher/export-image -C $(ETCDIR) ssl
installer.tarball:
@cmd/installer/make-tarball installer -C $(ETCDIR) ssl
imageserver.tarball:
@./scripts/make-tarball imageserver -C $(ETCDIR) ssl
imaginator.tarball:
@./scripts/make-tarball imaginator -C $(ETCDIR) ssl
mdbd.tarball:
@./scripts/make-tarball mdbd -C $(ETCDIR) ssl
subd.tarball:
@cd c; make
@./scripts/make-tarball subd \
-C cmd/subd set-owner \
-C $(GOPATH) bin/run-in-mntns \
-C $(ETCDIR) ssl
format:
gofmt -s -w .
format-imports:
goimports -w .
test:
@find * -name '*_test.go' |\
sed -e 's@^@github.com/Cloud-Foundations/Dominator/@' -e 's@/[^/]*$$@@' |\
sort -u | xargs go test
website:
@./scripts/make-website ${TARGET_DIR}