summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..22d8da7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
1connect:
2 picocom --baud 115200 --flow none --parity none --databits 8 --stopbits 1 --nolock --echo --raise-rts --raise-dtr /dev/ttyACM1
3.PHONY: connect
4
5build:
6 mkdir -p build
7 cmake -B build -G Ninja
8 cmake --build build
9.PHONY: build
10
11install:
12 $(MAKE) build
13 picotool load -f -x build/rivulet.uf2
14 @until [ -e /dev/ttyACM1 ]; do sleep 0.1; done; sleep 1
15.PHONY: install
16
17clean:
18 rm -rf build
19.PHONY: clean