summaryrefslogtreecommitdiff
path: root/json_data_rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'json_data_rules.mk')
-rw-r--r--json_data_rules.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/json_data_rules.mk b/json_data_rules.mk
new file mode 100644
index 000000000..980e63e88
--- /dev/null
+++ b/json_data_rules.mk
@@ -0,0 +1,9 @@
+# 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 += src/data/items.h
+
+src/data/items.h: src/data/items.json src/data/items.json.txt
+ $(JSONPROC) $^ $@
+
+$(C_BUILDDIR)/item.o: c_dep += src/data/items.h