From 5c49f7c2e46d6fced0763094ec05bba41298cbed Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Thu, 25 Jul 2024 13:28:55 -0700 Subject: Initial working version. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22d8da7 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +connect: + picocom --baud 115200 --flow none --parity none --databits 8 --stopbits 1 --nolock --echo --raise-rts --raise-dtr /dev/ttyACM1 +.PHONY: connect + +build: + mkdir -p build + cmake -B build -G Ninja + cmake --build build +.PHONY: build + +install: + $(MAKE) build + picotool load -f -x build/rivulet.uf2 + @until [ -e /dev/ttyACM1 ]; do sleep 0.1; done; sleep 1 +.PHONY: install + +clean: + rm -rf build +.PHONY: clean -- cgit v1.2.3