Add initial project structure and implement async main for Pico W

This commit is contained in:
2026-06-04 15:08:39 -05:00
parent dfafe5e595
commit 14d0015845
2 changed files with 24 additions and 5 deletions
+12 -5
View File
@@ -1,14 +1,21 @@
DIRENV := $(shell command -v direnv 2> /dev/null)
ifdef DIRENV
EXEC := direnv exec .
else
EXEC :=
endif
build:
cargo build
$(EXEC) cargo build
run:
cargo run
$(EXEC) cargo run
test:
cargo test
$(EXEC) cargo test
clean:
cargo clean
$(EXEC) cargo clean
.PHONY: build run test clean
@@ -16,4 +23,4 @@ clean:
# Flatpak build target
.PHONY: flatpak-build
flatpak-build:
flatpak-builder --force-clean build-flatpak flatpak/app.flatpak.json
$(EXEC) flatpak-builder --force-clean build-flatpak flatpak/app.flatpak.json