Files
mk64/assets/include/courses/royal_raceway.mk
T
Tyler McGavran 891caea16d Add clean targets for each asset makefile (#320)
This allows each asset group to define its own cleanup procedure
 while also providing a way to cleanup specific asset groups.

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-06-28 22:20:32 -06:00

23 lines
763 B
Makefile

ROYAL_RACEWAY_DIR := assets/courses/royal_raceway
ROYAL_RACEWAY_PIRANHA_PLANT_PALETTE := $(ROYAL_RACEWAY_DIR)/gTLUTRoyalRacewayPiranhaPlant.png
ROYAL_RACEWAY_EXPORT_SENTINEL := $(ROYAL_RACEWAY_DIR)/.export
$(BUILD_DIR)/courses/star_cup/royal_raceway/course_data.inc.o: $(ROYAL_RACEWAY_PIRANHA_PLANT_PALETTE:%.png=%.inc.c)
$(ROYAL_RACEWAY_PIRANHA_PLANT_PALETTE:%.png=%.inc.c): %.inc.c : %.png
$(N64GRAPHICS) -i $@ -g $< -s u8 -f rgba16
$(ROYAL_RACEWAY_PIRANHA_PLANT_PALETTE): $(ROYAL_RACEWAY_EXPORT_SENTINEL) ;
$(ROYAL_RACEWAY_EXPORT_SENTINEL): $(ASSET_DIR)/courses/royal_raceway.json
$(ASSET_EXTRACT) $(BASEROM) $<
touch $@
.PHONY: distclean_royal_raceway
distclean_royal_raceway:
rm -rf $(ROYAL_RACEWAY_DIR)
distclean_assets: distclean_royal_raceway