BLENDER = ../../blender-3.3.1-linux-x64/blender SERVER = src/godot/bin/godot_server.x11.opt.tools.64 .PHONY: all godot-editor-main export export-models export-clothes export-clean export-linux-demo export-windows-demo export-binaries patch all: godot-editor-main godot-main godot-main: patch cd src/godot; \ scons platform=x11 target=release tools=no custom_modules=../modules -j16; \ scons platform=x11 target=release_debug tools=no custom_modules=../modules -j16; cd src/godot; \ scons platform=x11 target=release tools=no custom_modules=../modules -j16; \ scons platform=server target=release_debug tools=yes custom_modules=../modules -j16 godot-editor-main: patch cd src/godot; \ scons platform=x11 target=release_debug tools=yes custom_modules=../modules -j16; patch: ./src/godot/scene/animation/skeleton_ik.cpp cd ./src/godot && git reset --hard HEAD && for p in ../patches/*.patch; do git apply $$p; done sed -e 's/ERR_FAIL_COND_V(-1 == p_task->root_bone, false);//g' -i ./src/godot/scene/animation/skeleton_ik.cpp export: export-models export-clothes rm -Rf godot/.import export-clean: rm -f assets/blender/scripts/tmp-*.blend export-models: export-clean $(BLENDER) -b -Y -P assets/blender/scripts/export_models.py export-clothes: export-clean $(BLENDER) -b -Y -P assets/blender/scripts/export_clothes.py export-binaries: mkdir -p export $(SERVER) --path godot --export linux_demo ../export/office-demo-linux.x86_64 $(SERVER) --path godot --export-debug linux_demo ../export/office-demo-debug-linux.x86_64 $(SERVER) --path godot --export windows_demo ../export/office-demo-windows.x86_64.exe $(SERVER) --path godot --export-debug windows_demo ../export/office-demo-debug-windows.x86_64.exe