updated makefiles and added dependency installation for ODIN
CI / Detect changed paths (pull_request) Failing after 1s
CI / Infra unit tests, vet, and preview (pull_request) Has been skipped
CI / Odin unit tests and build (pull_request) Has been skipped
CI / API unit tests and lint (pull_request) Has been skipped

This commit was merged in pull request #3.
This commit is contained in:
2026-09-02 11:37:29 -06:00
parent 920fcd6a1a
commit 9e6cb03b8a
5 changed files with 186 additions and 9 deletions
+18 -5
View File
@@ -9,7 +9,7 @@ GUI := gui
API := api
INFRA := infra
.PHONY: help setup run build build-debug build-web test clean fmt \
.PHONY: help setup run run-web build build-debug build-web test clean fmt \
renovate-validate
help: ## List available targets
@@ -23,24 +23,37 @@ help: ## List available targets
## ---- Setup ---------------------------------------------------------------
setup: ## Pull submodules + tidy Go deps
setup: ## Setup all sub-projects (submodules, gui deps, api deps, infra deps)
@git submodule update --init --recursive
@$(MAKE) -C $(GUI) setup
@$(MAKE) -C $(API) setup
@$(MAKE) -C $(INFRA) tidy
## ---- Renderer (Odin) -----------------------------------------------------
run: ## Run the native app (gui/)
@$(MAKE) -C $(GUI) run
@$(MAKE) -C $(API) run & api_pid=$$!; \
trap 'kill $$api_pid 2>/dev/null' INT TERM EXIT; \
$(MAKE) -C $(GUI) run; \
kill $$api_pid 2>/dev/null
build: ## Release build -> bin/desi_explorer (gui/)
build: ## Release build (gui/ + api/)
@$(MAKE) -C $(GUI) build
@$(MAKE) -C $(API) build
build-debug: ## Debug build -> bin/desi_explorer (gui/)
build-debug: ## Debug build (gui/ + api/)
@$(MAKE) -C $(GUI) build-debug
@$(MAKE) -C $(API) build
build-web: ## WebAssembly build -> build/web (gui/, needs emscripten)
@$(MAKE) -C $(GUI) build-web
run-web: ## Start WASM build + API server for web dev
@$(MAKE) -C $(API) run & api_pid=$$!; \
trap 'kill $$api_pid 2>/dev/null' INT TERM EXIT; \
$(MAKE) -C $(GUI) build-web; \
kill $$api_pid 2>/dev/null
## ---- Aggregates ----------------------------------------------------------
test: ## Test all projects (odin + cargo + go)