mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
Makefile: Make sure BIN directory exist when running any test
This commit allows to run any test directly after checking out the source code.
This commit is contained in:
parent
79938b37e5
commit
606d0b3ed9
9
Makefile
9
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
|
||||
|
Loading…
Reference in New Issue
Block a user