summaryrefslogtreecommitdiffstats
path: root/scripts2/Makefile.data
diff options
context:
space:
mode:
Diffstat (limited to 'scripts2/Makefile.data')
-rw-r--r--scripts2/Makefile.data15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts2/Makefile.data b/scripts2/Makefile.data
new file mode 100644
index 0000000..40eac38
--- /dev/null
+++ b/scripts2/Makefile.data
@@ -0,0 +1,15 @@
+all: pinyins.txt
+
+
+pinyins.txt:
+ python3 tools/distill.py
+
+
+update-header: pinyins.txt
+ python3 generateheader.py templates/pinyin_parser_table.h.in > ../src/storage/pinyin_parser_table.h
+ python3 generateheader.py templates/double_pinyin_table.h.in > ../src/storage/double_pinyin_table.h
+ python3 generateheader.py templates/zhuyin_table.h.in > ../src/storage/chewing_table.h
+ python3 generateheader.py templates/chewing_enum.h.in > ../src/storage/chewing_enum.h
+
+
+.PHONY: pinyins.txt