diff --git a/Makefile b/Makefile index 9d4894e..dc932dd 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,6 @@ base: Dockerfile $(DOCKER) build -t $(ORG)/base . base.test: base - mkdir -p $(BIN) $(DOCKER) run --rm dockcross/base > $(BIN)/dockcross-base && chmod +x $(BIN)/dockcross-base # @@ -109,4 +108,12 @@ $(addsuffix .test,$(STANDARD_IMAGES)): $$(basename $$@) $(DOCKER) run --rm dockcross/$(basename $@) > $(BIN)/dockcross-$(basename $@) && chmod +x $(BIN)/dockcross-$(basename $@) $(BIN)/dockcross-$(basename $@) python test/run.py $($@_ARGS) +# +# testing prerequisites implicit rule +# +test.prerequisites: + mkdir -p $(BIN) + +$(addsuffix .test,$(IMAGES)): test.prerequisites + .PHONY: base images $(IMAGES) test %.test