Makefile
62a81370
 .PHONY: all binary build cross default docs shell test
26533eb2
 
00030ced
 DOCKER_RUN_DOCKER := docker run -rm -i -t -privileged -e TESTFLAGS -v $(CURDIR)/bundles:/go/src/github.com/dotcloud/docker/bundles docker
 
 default: binary
 
 all: build
 	$(DOCKER_RUN_DOCKER) hack/make.sh
 
 binary: build
 	$(DOCKER_RUN_DOCKER) hack/make.sh binary
26533eb2
 
62a81370
 cross: build
4100e9b7
 	$(DOCKER_RUN_DOCKER) hack/make.sh binary cross
62a81370
 
27646c44
 docs:
00030ced
 	docker build -t docker-docs docs && docker run -p 8000:8000 docker-docs
26533eb2
 
00030ced
 test: build
f0879a1e
 	$(DOCKER_RUN_DOCKER) hack/make.sh test test-integration
26533eb2
 
00030ced
 shell: build
 	$(DOCKER_RUN_DOCKER) bash
 
 build: bundles
 	docker build -t docker .
56ab9cb0
 
 bundles:
 	mkdir bundles