mirror of
https://github.com/pret/pokeruby.git
synced 2024-10-06 18:13:29 +00:00
15 lines
787 B
Makefile
15 lines
787 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_SRC_SUBDIR)/wild_encounters.h
|
|
$(DATA_SRC_SUBDIR)/wild_encounters.h: $(DATA_SRC_SUBDIR)/wild_encounters.json $(DATA_SRC_SUBDIR)/wild_encounters.json.txt
|
|
$(JSONPROC) $^ $@
|
|
|
|
$(BUILD_DIR)/src/wild_encounter.o: C_DEP += $(DATA_SRC_SUBDIR)/wild_encounters.h
|
|
|
|
AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
|
|
$(DATA_SRC_SUBDIR)/region_map/region_map_entries.h: $(DATA_SRC_SUBDIR)/region_map/region_map_sections.json $(DATA_SRC_SUBDIR)/region_map/region_map_sections.json.txt
|
|
$(JSONPROC) $^ $@
|
|
|
|
$(BUILD_DIR)/src/region_map.o: C_DEP += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
|