forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 880 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
GO_MINOR_VERSION = $(shell go version | cut -d . -f 2)
# note: docker/mixs to be phony to make sure rebuilding always.
.PHONY: docker docker/mixs
.INTERMEDIATE: check.prereqs
default: docker
check.prereqs:
@if test $(GO_MINOR_VERSION) -lt 9; then echo -n "go version 1.9+ required, found: "; go version; exit 1; fi
clean:
rm -f docker/mixs
rm -f docker/ca-certificates.tgz
$(MAKE) clean -C example/servicegraph
docker: docker/mixs docker/ca-certificates.tgz
cd docker && docker build -t mixer -f Dockerfile .
cd docker && docker build -t mixer_debug -f Dockerfile.debug .
$(MAKE) docker -C example/servicegraph
# fetch debian ca-certs to package in the docker container.
docker/ca-certificates.tgz: ../docker/ca-certificates.tgz
cp ../docker/ca-certificates.tgz ./docker
docker/mixs: check.prereqs
../bin/gobuild.sh $@ istio.io/istio/mixer/pkg/version ./cmd/mixs