mirror of https://github.com/n64decomp/mk64.git
24 lines
683 B
Makefile
24 lines
683 B
Makefile
STARTUP_LOGO := assets/startup_logo
|
|
|
|
REFLECTION_MAP := $(STARTUP_LOGO)/gTextureReflectionMapGold.png
|
|
|
|
STARTUP_LOGO_EXPORT_SENTINEL := $(STARTUP_LOGO)/.export
|
|
|
|
$(BUILD_DIR)/src/data/startup_logo.o: $(REFLECTION_MAP:%.png=%.inc.c)
|
|
|
|
$(REFLECTION_MAP:%.png=%.inc.c): %.inc.c : %.png
|
|
@$(PRINT) "$(GREEN)Converting: $(BLUE) $< -> $@$(NO_COL)\n"
|
|
$(V)$(N64GRAPHICS) -i $@ -g $< -s u8 -f rgba16
|
|
|
|
$(REFLECTION_MAP): $(STARTUP_LOGO_EXPORT_SENTINEL) ;
|
|
|
|
$(STARTUP_LOGO_EXPORT_SENTINEL): $(ASSET_DIR)/startup_logo.json
|
|
$(V)$(ASSET_EXTRACT) $(BASEROM) $<
|
|
$(V)$(TOUCH) $@
|
|
|
|
.PHONY: distclean_startup_logo
|
|
distclean_startup_logo:
|
|
rm -rf $(STARTUP_LOGO)
|
|
|
|
distclean_assets: distclean_startup_logo
|