mirror of
https://github.com/pret/pokefirered.git
synced 2026-04-09 02:26:28 -05:00
16 lines
634 B
Makefile
16 lines
634 B
Makefile
# JSON files are run through jsonproc, which is a tool that converts JSON data to an output file
|
|
# based on an Inja template. https://github.com/pantor/inja
|
|
|
|
AUTO_GEN_TARGETS += $(DATA_C_SUBDIR)/items.h
|
|
|
|
$(DATA_C_SUBDIR)/items.h: $(DATA_C_SUBDIR)/items.json $(DATA_C_SUBDIR)/items.json.txt
|
|
$(JSONPROC) $^ $@
|
|
|
|
$(C_BUILDDIR)/item.o: c_dep += $(DATA_C_SUBDIR)/items.h
|
|
|
|
AUTO_GEN_TARGETS += $(DATA_C_SUBDIR)/wild_encounters.h
|
|
$(DATA_C_SUBDIR)/wild_encounters.h: $(DATA_C_SUBDIR)/wild_encounters.json $(DATA_C_SUBDIR)/wild_encounters.json.txt
|
|
$(JSONPROC) $^ $@
|
|
|
|
$(C_BUILDDIR)/wild_encounter.o: c_dep += $(DATA_C_SUBDIR)/wild_encounters.h
|