Files
docker-machine/Makefile
David Gageot 1b7cfb0ce6 Faster in-container build.
Start the container only once

Signed-off-by: David Gageot <david@gageot.net>
2015-11-10 16:43:52 +01:00

19 lines
487 B
Makefile

# Plain make targets if not requested inside a container
ifneq (,$(findstring test-integration,$(MAKECMDGOALS)))
include Makefile.inc
include mk/main.mk
else ifeq ($(USE_CONTAINER),)
include Makefile.inc
include mk/main.mk
else
# Otherwise, with docker, swallow all targets and forward into a container
DOCKER_BUILD_DONE := ""
test: .DEFAULT
.DEFAULT:
@test ! -z "$(DOCKER_BUILD_DONE)" || ./script/build_in_container.sh $(MAKECMDGOALS)
$(eval DOCKER_BUILD_DONE := "done")
endif