From 43d49d978ea441e0987eda471ba5744a74ee3c79 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 17 Nov 2020 19:58:42 +0100 Subject: Makefile: WIP --- Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a029670 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ + +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 $