forked from theojulienne/ninjasphere-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 1.05 KB
/
Makefile
File metadata and controls
43 lines (31 loc) · 1.05 KB
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
IMAGE=ninjasphere/ninjasphere
SPHERE_CLIENT_BIN=bin-linux-amd64/sphere-client
SPHERE_DIRECTOR_BIN=bin-linux-amd64/sphere-director
SPHERE_HOMECLOUD_BIN=bin-linux-amd64/sphere-go-homecloud
MQTT_BRIDGEIFY_BIN=bin-linux-amd64/mqtt-bridgeify
SPHERE_UI_BIN=bin-linux-amd64/sphere-ui
BINARIES=\
$(SPHERE_CLIENT_BIN) \
$(SPHERE_DIRECTOR_BIN) \
$(SPHERE_HOMECLOUD_BIN) \
$(MQTT_BRIDGEIFY_BIN) \
$(SPHERE_UI_BIN)
all: build
build: sphere-config sphere-schemas $(BINARIES)
docker build -t $(IMAGE) .
sphere-config:
git clone https://github.com/ninjasphere/sphere-config.git
sphere-schemas:
git clone https://github.com/ninjasphere/schemas.git sphere-schemas
$(SPHERE_CLIENT_BIN):
bash build-binary.sh ninjasphere/sphere-client
$(SPHERE_DIRECTOR_BIN):
bash build-binary.sh ninjasphere/sphere-director
$(SPHERE_HOMECLOUD_BIN):
bash build-binary.sh ninjasphere/sphere-go-homecloud
$(MQTT_BRIDGEIFY_BIN):
bash build-binary.sh ninjablocks/mqtt-bridgeify
$(SPHERE_UI_BIN):
bash build-binary.sh ninjasphere/sphere-ui
clean:
rm -rf sphere-config sphere-schemas $(BINARIES)