Add a "local" make target that does not use Docker

This assumes you are in the right directory, have Go set up etc.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-06-09 15:24:21 +01:00
parent 0b2506523d
commit ac90b50437

View File

@ -43,6 +43,9 @@ bin/linuxkit: $(LINUXKIT_DEPS) | bin
rm tmp_linuxkit_bin.tar
touch $@
local: $(LINUXKIT_DEPS) | bin
go build -o bin/linuxkit --ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" github.com/linuxkit/linuxkit/src/cmd/linuxkit
bin:
mkdir -p $@