aboutsummaryrefslogtreecommitdiff
path: root/main/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-10 14:49:36 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-10 14:49:36 +0200
commit573643a1d3220830de47c810cb1a6be629ce7abd (patch)
tree162a6923f388fef4ab62ddb7ed4a2c82f274fa97 /main/makefile
parentae8dfd2028bfbac5f37bbf4f5d7c2d8bff618b02 (diff)
WIP protobuf hello world
Diffstat (limited to 'main/makefile')
-rw-r--r--main/makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/main/makefile b/main/makefile
index 1986cd3..9df4f09 100644
--- a/main/makefile
+++ b/main/makefile
@@ -1,22 +1,9 @@
-# this file is for lazy people (loek)
+TARGET = $(BUILD_DIR)/main.uf2
-.PHONY: FORCE
+include ../lazy.mk
-all: FORCE build/main.uf2
-
-build/build.ninja: CMakeLists.txt
- mkdir -p build
- cmake -B build -G Ninja --fresh --log-level WARNING
-
-build/main.uf2: build/build.ninja FORCE
- ninja -C build
-# ninja automatically builds in parallel, so is preferred
-
-flash: build/main.uf2 FORCE
+flash: $(TARGET) FORCE
picotool load -fx $<
# -f forces a reboot of the pico before flashing
# -x resets the pico after flashing
-clean: FORCE
- $(RM) -r build
-