Files
linuxkit/alpine/packages/diagnostics/Makefile
Justin Cormack 6a315fab59 Clean up go-compile
- remove unused `--docker` option
- neater output for stages of check, build

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-15 19:43:03 +00:00

16 lines
461 B
Makefile

# Tag: 6075d4b9c5fe30e19581f1b7ef1813f3041cca32
GO_COMPILE=mobylinux/go-compile@sha256:badfd8a1730ab6e640682d0f95a8f9c51f3cd4b2e8db261fe1a1fd8c6f60bd6e
default: usr/bin/diagnostics-server
DEPS=$(wildcard *.go)
usr/bin/diagnostics-server: $(DEPS) ../vendor/manifest
mkdir -p $(dir $@)
tar cf - $(DEPS) -C .. vendor | docker run --rm --net=none --log-driver=none -i $(GO_COMPILE) -o $@ | tar xf -
clean:
rm -f usr/bin/diagnostics-server
.DELETE_ON_ERROR: