Removing configuration informations for Makefile and adding reading of them

This commit is contained in:
yannk 2021-12-17 22:45:16 +01:00
parent 373a23a8ea
commit 37f4c78f3b

View file

@ -1,45 +1,16 @@
# Variables definitions # Variables definitions
SHELL=/bin/bash SHELL=/bin/bash
# executables used # Get Configuration informations from global or local config file
export MAKESBSAR=sbscooker --quiet --output-name {inputName} --includes "/opt/Allegorithmic/Substance_Automation_Toolkit/resources/packages/" --includes "sbs/utilities/" CONFIG_FILES=global-config.mk local-config.mk
export GETPRESET=sbsmutator info --print-presets include $(CONFIG_FILES)
export GETOUTPUT=sbsmutator info --print-outputs
export SBSRENDER=sbsrender
# sbsar files generation part # sbsar files generation part
export SBS_DIR=sbs
export SBSAR_DIR=sbsar
## Auto definitions - do not change
export SBSFILES = $(wildcard $(SBS_DIR)/*.sbs) export SBSFILES = $(wildcard $(SBS_DIR)/*.sbs)
export SBSARDESTINATION = $(subst $(SBS_DIR)/, $(SBSAR_DIR)/, $(SBSFILES)) export SBSARDESTINATION = $(subst $(SBS_DIR)/, $(SBSAR_DIR)/, $(SBSFILES))
export SBSARFILES = $(SBSARDESTINATION:.sbs=.sbsar) export SBSARFILES = $(SBSARDESTINATION:.sbs=.sbsar)
# texturesets files
export TEXTURESET_FOLDER := texturesets
# texture names possible
export TEXTURES_NAMES := basecolor|normal|metallic|roughness|opacity|height
# png files folders
export PNG1024_DIR := png_1024
export PNG512_DIR := png_512
export PNG256_DIR := png_256
# Blender related
export BLENDFILES_FOLDER := blenderfiles/master
export BLENDEREXEC := /home/yann/Documents/3D/blender_builds/daily/blender-3.1.0-alpha+daily.644eb68524b9/blender
# Logo file
export LOGO := logo/YKtextures.png
# Destination preview folder
export BUILD_FOLDER := build
# Material list
export MATERIALLIST := material_list.json
### RECIPE PART ### ### RECIPE PART ###
all : previews subformats all : previews subformats