BUILDDIR ?= build WGET ?= wget PYTHON ?= python3 .PRECIOUS: $(BUILDDIR)/%.jar .PRECIOUS: $(BUILDDIR)/%.jar.version $(BUILDDIR)/%.jar: mkdir -p $(BUILDDIR) $(WGET) --tries=10 -O $@ $$($(PYTHON) tools/get_p2_url.py --write-version $@.version $*) touch $@ OUTPUTS := svd mx_mcu_db prog_db chip_db all: $(OUTPUTS) $(BUILDDIR)/%.dir: $(BUILDDIR)/%.jar mkdir -p $@ rm -rf $@ unzip -q -d $@ $< .PHONY: update_svd svd: $(BUILDDIR)/com.st.stm32cube.ide.mcu.productdb.debug.dir rm -rf $@ mkdir -p $@ cp $