Skip to content

Commit

Permalink
add Wizard examples
Browse files Browse the repository at this point in the history
  • Loading branch information
scaprile committed Sep 26, 2024
1 parent 399291d commit 3538b0a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/cube/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ ROOT ?= $(realpath $(CURDIR)/../..)
PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-cube-*)
TARGET ?= Debug
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
IMAGE ?= springrockconsulting/stm32cubeide:v1
# image author did not set path, so a hardcoded reference to a variable name dir is needed
PATHTO ?= /opt/st/stm32cubeide_1.12.0/
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
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)
(make -C $@ && make -C $@ clean) || $(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)

FORCE:

Expand Down

0 comments on commit 3538b0a

Please sign in to comment.