forked from sodafoundation/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·31 lines (23 loc) · 904 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
.PHONY: all build package osdsdock osdslet docker clean
all:build
build:osdsdock osdslet osdsctl
package:
go get github.com/opensds/opensds/cmd/osdslet
go get github.com/opensds/opensds/cmd/osdsdock
go get github.com/opensds/opensds/osdsctl
osdsdock:package
mkdir -p ./build/out/bin/
go build -o ./build/out/bin/osdsdock github.com/opensds/opensds/cmd/osdsdock
osdslet:package
mkdir -p ./build/out/bin/
go build -o ./build/out/bin/osdslet github.com/opensds/opensds/cmd/osdslet
osdsctl:package
mkdir -p ./build/out/bin/
go build -o ./build/out/bin/osdsctl github.com/opensds/opensds/osdsctl
docker:build
cp ./build/out/bin/osdsdock ./cmd/osdsdock
cp ./build/out/bin/osdslet ./cmd/osdslet
docker build cmd/osdsdock -t opensdsio/opensds-dock:latest
docker build cmd/osdslet -t opensdsio/opensds-controller:latest
clean:
rm -rf ./build ./cmd/osdslet/osdslet ./cmd/osdsdock/osdsdock