We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 11d5890 + 58b9032 commit 393944fCopy full SHA for 393944f
1 file changed
Makefile
@@ -9,12 +9,18 @@ ifeq ($(GODOT),)
9
$(error Godot not found. Install it or set GODOT=/path/to/godot)
10
endif
11
12
-.PHONY: run test validate coverage help
+.PHONY: run test validate coverage help import
13
14
help: ## Show this help
15
@grep -E '^[a-z][a-z_-]+:.*## ' $(MAKEFILE_LIST) | awk -F ':.*## ' '{printf " make %-12s %s\n", $$1, $$2}'
16
17
-run: ## Launch the game client (logs to output.log)
+import: ## Build .godot/ import cache (class_name registration, resource import)
18
+ @if [ ! -d .godot ]; then \
19
+ echo "Building import cache..."; \
20
+ $(GODOT) --headless --import; \
21
+ fi
22
+
23
+run: import ## Launch the game client (logs to output.log)
24
$(GODOT) --path . 2>&1 | tee output.log
25
26
test: ## Run all tests (unit + integration)
0 commit comments