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 $@ && sudo make -C $@ clean) || $(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET) FORCE: # Automated remote test. See https://vcon.io/automated-firmware-tests/ URL ?= https://dash.vcon.io/api/v3/devices update: $(PROJECTS) curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota --data-binary @$