updated makefiles and added dependency installation for ODIN
This commit was merged in pull request #3.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user