summaryrefslogtreecommitdiff
path: root/json_data_rules.mk
diff options
context:
space:
mode:
authorSatoMew <SatoMew@users.noreply.github.com>2019-08-04 20:35:38 +0100
committerGitHub <noreply@github.com>2019-08-04 20:35:38 +0100
commit667f0837e2c0fecb03e4198a182cf04624a47fbd (patch)
tree4f11ff910478fdb34a4c40c465b30be2ac1a22da /json_data_rules.mk
parent89da828794d036e33ef313ab95868c8be6bb039f (diff)
parentce941e6f56803b389c20a52c0a5b89f5ade12b7a (diff)
Merge branch 'master' into master
Diffstat (limited to 'json_data_rules.mk')
-rwxr-xr-xjson_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 100755
index 000000000..1de3c79f3
--- /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) $^ $@
+
+$(C_BUILDDIR)/wild_encounter.o: c_dep += $(DATA_SRC_SUBDIR)/wild_encounters.h