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