And once again
This commit is contained in:
14
Makefile
14
Makefile
@ -18,3 +18,17 @@ rust_build:
|
||||
|
||||
rust_fmt:
|
||||
cd rust && cargo fmt
|
||||
|
||||
|
||||
GODOT_TOOLS ?= $(shell pwd)/godot_tools
|
||||
|
||||
godot_tools:
|
||||
test -s $(GODOT_TOOLS)/bin/activate || python3 -m venv $(GODOT_TOOLS)
|
||||
source $(GODOT_TOOLS)/bin/activate &&\
|
||||
python3 -m pip install "gdtoolkit==4.*"
|
||||
|
||||
godot_lint: godot_tools
|
||||
$(GODOT_TOOLS)/bin/gdlint ./godot
|
||||
|
||||
godot_fmt: godot_tools
|
||||
$(GODOT_TOOLS)/bin/gdformat ./godot
|
||||
|
Reference in New Issue
Block a user