From c73de8bed752ca538d90cfc93c4a9e8c7965f8c9 Mon Sep 17 00:00:00 2001 From: garak Date: Thu, 1 Aug 2019 18:13:42 -0400 Subject: convert wild encounters to json --- json_data_rules.mk | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 json_data_rules.mk (limited to 'json_data_rules.mk') diff --git a/json_data_rules.mk b/json_data_rules.mk new file mode 100644 index 000000000..b21435504 --- /dev/null +++ b/json_data_rules.mk @@ -0,0 +1,8 @@ +# 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 -- cgit v1.2.3