hurrmmm/blends/Makefile

11 lines
349 B
Makefile
Raw Permalink Normal View History

2023-11-11 09:15:31 -07:00
BLEND_FILES = $(shell find -type f -name '*.blend')
GLB_TARGETS = $(patsubst %.blend, ../godot/%.glb, $(BLEND_FILES))
all: ${GLB_TARGETS}
# --factory-startup disables addons (My custom addons are buggy and crash lots)
../godot/%.glb: %.blend
mkdir -p $(shell dirname $@)
blender -b --factory-startup $< --python-text export.py --export-path $@