aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..af3c25b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+SRC=$(wildcard *.py)
+MPY=$(patsubst %.py,build/%.mpy,$(SRC))
+
+all: $(MPY)
+
+.phony: build
+build:
+ mkdir build
+
+build/%.mpy: %.py | build
+ ../mpy-cross.static-amd64-linux-8.0.5 -O3 -o $@ $<
+
+.phony: clean
+clean:
+ rm -r build