Files
linuxkit/alpine/packages/proxy/Makefile
Justin Cormack b69893eb6d Clean up proxy Makefile
Model for the others, make sure dependencies are correct and that
only the exactly correct things are passed to Docker. No longer copy
vendor directory.

Signed-off-by: Justin Cormack <justin@specialbusservice.com>
2016-09-12 15:59:19 +01:00

17 lines
357 B
Makefile

all: proxy
files:
ls Dockerfile *.go > files
find libproxy >> files
printf -- '-C\n../go\n' >> files
(cd ../go && find vendor) >> files
proxy: Dockerfile $(wildcard *.go libproxy/*.go) ../go/vendor/manifest files
tar cf - -T files | docker build -t proxy:build -
docker run --rm proxy:build | tar xf -
clean:
rm -rf proxy files
.DELETE_ON_ERROR: