summaryrefslogtreecommitdiff
path: root/json_data_rules.mk
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-10-02 11:44:50 -0400
committerGitHub <noreply@github.com>2019-10-02 11:44:50 -0400
commit8c86b656d2fa97fc5eb113e9807d49f48c715f8b (patch)
tree01e14b4dec7ef184ca50b9f0815a662590520045 /json_data_rules.mk
parent32693e94d844cb401aed91d066b9f5ad1eb440a7 (diff)
parent1bd678656c735bbeb603ccb80367c7a85f820f61 (diff)
Merge branch 'master' into modern_gcc
Diffstat (limited to 'json_data_rules.mk')
-rw-r--r--json_data_rules.mk8
1 files changed, 8 insertions, 0 deletions
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