-
Notifications
You must be signed in to change notification settings - Fork 104
/
Makefile
55 lines (43 loc) · 1.42 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
.PHONY: build clean publish
HOSTIP=$(shell ip route get 1 | awk '{print $$NF;exit}')
#
# Don't forget: set and source docker/versions.sh before
# building and publishing the toolchain images!
#
# build toolchain images
build: build_gcc build_clang
build_gcc:
time docker build \
--no-cache \
--build-arg BUILD_DATE=${BUILD_DATE} \
--build-arg AUTOBAHN_CPP_VCS_REF=${AUTOBAHN_CPP_VCS_REF} \
--build-arg AUTOBAHN_CPP_VERSION=${AUTOBAHN_CPP_VERSION} \
-t crossbario/autobahn-cpp \
-t crossbario/autobahn-cpp:gcc \
-t crossbario/autobahn-cpp:gcc-${AUTOBAHN_CPP_VERSION} \
-f docker/Dockerfile.gcc .
build_clang:
time docker build \
--no-cache \
--build-arg BUILD_DATE=${BUILD_DATE} \
--build-arg AUTOBAHN_CPP_VCS_REF=${AUTOBAHN_CPP_VCS_REF} \
--build-arg AUTOBAHN_CPP_VERSION=${AUTOBAHN_CPP_VERSION} \
-t crossbario/autobahn-cpp:clang \
-t crossbario/autobahn-cpp:clang-${AUTOBAHN_CPP_VERSION} \
-f docker/Dockerfile.clang .
# publish toolchain images
publish: publish_gcc publish_clang
publish_gcc:
docker push crossbario/autobahn-cpp
docker push crossbario/autobahn-cpp:gcc
docker push crossbario/autobahn-cpp:gcc-${AUTOBAHN_CPP_VERSION}
publish_clang:
docker push crossbario/autobahn-cpp:clang
docker push crossbario/autobahn-cpp:clang-${AUTOBAHN_CPP_VERSION}
# list/clean (local) toolchain images
list:
-docker images crossbario/autobahn-cpp:*
clean:
./docker/removeall.sh
crossbar:
crossbar start