RENDER_LIST properly builds list of preview renders to process, without extension nor path
This commit is contained in:
parent
45ecd02aca
commit
9d6cd597c6
1 changed files with 13 additions and 3 deletions
|
@ -1,4 +1,12 @@
|
|||
TEXTURESETS := $(foreach file, $(TEXTURESET_FOLDER), $(basename $(notdir $(wildcard $(TEXTURESET_FOLDER)/*))))
|
||||
|
||||
|
||||
RENDER_FOLDER = $(shell cat $(MATERIALLIST) | jq -r --arg folder "$(SET)" '.[] | select(.name==$$folder) | .type')
|
||||
|
||||
RENDER_FILES = $(foreach RENDER, $(basename $(notdir $(wildcard $(BLENDFILES_FOLDER)/$(shell cat $(MATERIALLIST) | jq -r --arg folder "$(SET)" '.[] | select(.name==$$folder) | .type')/*.blend))), $(SET)_$(RENDER))
|
||||
RENDER_LIST := $(foreach SET, $(TEXTURESETS), $(RENDER_FILES))
|
||||
|
||||
|
||||
BLENDFILES := $(foreach file, $(BLENDFILES_FOLDER)/master, $(basename $(notdir $(wildcard $(BLENDFILES_FOLDER)/master/*.blend))))
|
||||
BLENDFILES_SUFFIX := $(foreach file, $(BLENDFILES), $(addsuffix $(file), _))
|
||||
TARGET := $(foreach file, $(TEXTURESETS), $(addprefix $(file), $(BLENDFILES_SUFFIX)))
|
||||
|
@ -9,14 +17,16 @@ RENDERS := $(foreach file, $(BLENDFILES_SUFFIX), $(addprefix %, $(file)))
|
|||
RENDERS := $(foreach file, $(RENDERS), $(addsuffix .png, $(file)))
|
||||
RENDERS := $(foreach file, $(RENDERS), $(addprefix $(PREVIEW_FOLDER)/, $(file)))
|
||||
|
||||
test:
|
||||
echo "TARGET: $(TARGET)"
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(RENDERS): $(TEXTURESET_FOLDER)/%
|
||||
@ echo "RENDER_LIST : $(RENDER_LIST)"
|
||||
@ echo "RENDER_FILES : $(RENDER_FILES)"
|
||||
@ echo "RENDERS :" $(RENDERS)
|
||||
@ echo "BLENDFILES :" $(BLENDFILES)
|
||||
@ echo "BLENDFILES_SUFFIX :" $(BLENDFILES_SUFFIX)
|
||||
@ echo "TARGET : $(TARGET)"
|
||||
@ echo "TEXTURESETS : $(TEXTURESETS)"
|
||||
@ echo "Prerequisite :" $<
|
||||
@ pngset=`cat $<`;\
|
||||
echo "pngset :" $$pngset ;\
|
||||
|
|
Loading…
Reference in a new issue