# Do NOT use parenthesis on Windows project dir names PROJECTS ?= $(wildcard ../../tutorials/stm32/nucleo-*-keil-*) TARGET ?= "Target 1" MAKEFILEPATH := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) BATPATH := $(subst /,\,$(MAKEFILEPATH)) all: $(PROJECTS) # Need to test inside .bat to check and transfer errors $(PROJECTS): FORCE $(BATPATH)unitest.bat $(subst /,\,$@) $(TARGET) FORCE: # Automated remote test. See https://vcon.io/automated-firmware-tests/ URL ?= https://dash.vcon.io/api/v3/devices update: $(PROJECTS) curl -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota?hex=1 --data-binary @$