-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (28 loc) · 1012 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
all: static/static.go
xc:
docker run -it -v $(shell pwd):/build -v ${GOPATH}:/gopath slim-wink-buildroot
mv build chromaticity
swagger-ui/dist:
git submodule init
git submodule update
static/apidocs: swagger-ui/dist
cp -R swagger-ui/dist static/apidocs
rm static/apidocs/index.html
$(MAKE) patch-static
.PHONY: patch-static
patch-static:
cp static/patch/index.html static/apidocs/index.html
cp static/patch/arrive.min.js static/apidocs/lib/arrive.min.js
cp static/patch/screen.css static/apidocs/css/screen.css
cp static/patch/logo_small.png static/apidocs/images/logo_small.png
static/static.go: static/apidocs
$(eval STATIC_DIRS:=$(shell find static -type d | tr \\n ' '))
go-bindata -pkg=static -ignore=static/static.go -o static/static.go ${STATIC_DIRS}
clean:
rm static/static.go
.PHONY: docker
docker:
docker build -t chromaticity:latest -f docker/x86_64/Dockerfile .
.PHONY: docker-arm32v7
docker-arm32v7:
docker build -t chromaticity:arm32v7-latest -f docker/arm32v7/Dockerfile .