-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
42 lines (33 loc) · 850 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
37
38
39
40
41
42
REGISTRY=quay.io
PRODUCT=kkohtaka/edgetpu-device-plugin
default: build
all: clean build samples
.PHONY: build
build:
docker build -t $(REGISTRY)/$(PRODUCT):amd64 .
.PHONY: build-arm32
build-arm32:
docker build -t $(REGISTRY)/$(PRODUCT):arm32 \
--build-arg DEBIAN_BASE_SUFFIX=arm \
--build-arg GO_TARBALL=go1.11.linux-armv6l.tar.gz \
--build-arg SO_SUFFIX=arm32 \
--build-arg LIB_PATH=/lib/arm-linux-gnueabihf \
.
.PHONY: samples
samples:
$(MAKE) -C samples
.PHONY: samples-arm32
samples-arm32:
$(MAKE) -C samples build-arm32
.PHONY: clean
clean:
$(MAKE) -C samples clean
kubectl delete --ignore-not-found -f edgetpu-device-plugin.yaml
.PHONY: push
push:
docker push $(REGISTRY)/$(PRODUCT):amd64
$(MAKE) -C samples push
.PHONY: push-arm32
push-arm32:
docker push $(REGISTRY)/$(PRODUCT):arm32
$(MAKE) -C samples push-arm32