Cleanup Assets
This commit is contained in:
@@ -1,41 +1,48 @@
|
||||
include $(JABY_ENGINE_DIR)/mkfile/common/ExportPath.mk
|
||||
include $(JABY_ENGINE_DIR)/mkfile/common/RebuildTarget.mk
|
||||
|
||||
define wuff
|
||||
$1_FLAGS = $2
|
||||
endef
|
||||
|
||||
OUTPUT_DIR = bin
|
||||
INPUT = $(OUTPUT_DIR)/Evacuation.xa $(OUTPUT_DIR)/fox.xa $(OUTPUT_DIR)/TexturePage.bin $(OUTPUT_DIR)/IconTexture.bin $(OUTPUT_DIR)/Paco.bin $(OUTPUT_DIR)/Controller.bin $(OUTPUT_DIR)/doener_fish.bin $(OUTPUT_DIR)/JabyStar.bin
|
||||
CLUT_4_COLOR_TRANS_FLAGS = simple-tim clut4 --color-trans
|
||||
|
||||
# Ressources to convert
|
||||
## Music tracks
|
||||
INPUT += $(OUTPUT_DIR)/Evacuation_cdda.xa
|
||||
INPUT += $(OUTPUT_DIR)/fox.xa
|
||||
|
||||
## Images
|
||||
INPUT += $(OUTPUT_DIR)/TexturePage.img
|
||||
TexturePage_FLAGS = simple-tim clut4
|
||||
|
||||
INPUT += $(OUTPUT_DIR)/IconTexture.img
|
||||
IconTexture_FLAGS = simple-tim clut4 --semi-trans --color-trans
|
||||
|
||||
INPUT += $(OUTPUT_DIR)/Paco.img
|
||||
Paco_FLAGS = $(CLUT_4_COLOR_TRANS_FLAGS)
|
||||
|
||||
INPUT += $(OUTPUT_DIR)/Controller.img
|
||||
Controller_FLAGS = $(CLUT_4_COLOR_TRANS_FLAGS)
|
||||
|
||||
INPUT += $(OUTPUT_DIR)/doener_fish.img
|
||||
doener_fish_FLAGS = $(CLUT_4_COLOR_TRANS_FLAGS)
|
||||
|
||||
INPUT += $(OUTPUT_DIR)/JabyStar.img
|
||||
JabyStar_FLAGS = $(CLUT_4_COLOR_TRANS_FLAGS)
|
||||
|
||||
$(OUTPUT_DIR)/fox.xa: audio/temp/fox.wav
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv $< -o $@ xa
|
||||
|
||||
$(OUTPUT_DIR)/Evacuation.xa: audio/Evacuation_cdda.wav
|
||||
$(OUTPUT_DIR)/%.xa: audio/%.wav
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv $< -o $@ xa
|
||||
|
||||
# TODO: Simplyfy all of these?
|
||||
$(OUTPUT_DIR)/TexturePage.bin: TexturePage.png
|
||||
$(OUTPUT_DIR)/%.img: %.png
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4
|
||||
|
||||
$(OUTPUT_DIR)/IconTexture.bin: IconTexture.png
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --semi-trans --color-trans
|
||||
|
||||
$(OUTPUT_DIR)/Paco.bin: Paco.png
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans
|
||||
|
||||
$(OUTPUT_DIR)/Controller.bin: Controller.png
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans
|
||||
|
||||
$(OUTPUT_DIR)/doener_fish.bin: doener_fish.png
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans
|
||||
|
||||
$(OUTPUT_DIR)/JabyStar.bin: JabyStar.png
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans
|
||||
jaby_engine_fconv --lz4 $< -o $@ $($*_FLAGS)
|
||||
|
||||
all: $(INPUT)
|
||||
|
||||
|
Reference in New Issue
Block a user