aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-08-11 16:43:29 +0200
committerSébastien Dailly <sebastien@dailly.me>2024-08-11 16:43:29 +0200
commit109c4395a86c72fb34f820c633a1679590dc8fdb (patch)
tree7f6f405b9e4d4bf6b1650f65d4b9e40fcdbe3f83 /Makefile
Initial commitmain
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