CHOCO_MOUNTAIN_DIR := assets/courses/choco_mountain

CHOCO_MOUNTAIN_PNG := \
$(CHOCO_MOUNTAIN_DIR)/gTextureChocoMountainWall.png \
$(CHOCO_MOUNTAIN_DIR)/gTextureChocoMountainRock.png

CHOCO_MOUNTAIN_EXPORT_SENTINEL := $(CHOCO_MOUNTAIN_DIR)/.export

$(BUILD_DIR)/courses/choco_mountain/course_data.o: $(CHOCO_MOUNTAIN_PNG:%.png=%.inc.c)

$(CHOCO_MOUNTAIN_PNG:%.png=%.inc.c): %.inc.c : %.png
	@$(PRINT) "$(GREEN)Converting:  $(BLUE) $< -> $@$(NO_COL)\n"
	$(V)$(N64GRAPHICS) -i $@ -g $< -s u8 -f rgba16

$(CHOCO_MOUNTAIN_PNG): $(CHOCO_MOUNTAIN_EXPORT_SENTINEL) ;

$(CHOCO_MOUNTAIN_EXPORT_SENTINEL): $(ASSET_DIR)/courses/choco_mountain.json
	$(V)$(ASSET_EXTRACT) $(BASEROM) $<
	$(V)$(TOUCH) $@

.PHONY: distclean_choco_mountain
distclean_choco_mountain:
	rm -rf $(CHOCO_MOUNTAIN_DIR)

distclean_assets: distclean_choco_mountain
