mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 01:29:00 +08:00
f3cd74cb46
Add Wizard test script
17 lines
604 B
Makefile
17 lines
604 B
Makefile
ROOT ?= $(realpath $(CURDIR)/../..)
|
|
PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-cube-*)
|
|
TARGET ?= Debug
|
|
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
|
|
IMAGE ?= scaprile/cubeozone
|
|
# set PATHTO if image author did not set path
|
|
|
|
all: $(PROJECTS)
|
|
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -removeAll workspace
|
|
|
|
$(PROJECTS): FORCE
|
|
(make -C $@ && make -C $@ clean) || ( \
|
|
PROJNAME=`xq -r .projectDescription.name $@/.project` && \
|
|
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $$PROJNAME/$(TARGET) )
|
|
|
|
FORCE:
|