1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
DOCKER=$(shell which docker)
TOUCH=$(shell which touch)
WGET=$(shell which wget)
TAR=$(shell which tar)
DOCKERTESTS=$(wildcard docker_tests_*)
all: $(DOCKERTESTS)
important: docker_tests_i386 docker_tests_amd64 docker_tests_ppc
$(DOCKERTESTS): Makefile
make -C $@
delete_all: delete_images
delete_images: delete_containers
${DOCKER} rmi $(shell ${DOCKER} images -q) || true
delete_containers:
${DOCKER} rm $(shell ${DOCKER} ps -a -q) || true
clean:
for i in $(DOCKERTESTS); \
do make -C $$i clean; \
done
.PHONY: clean important $(DOCKERTESTS)
|