From 3d9e1ee4d4de86b722d07a822ebb5521acd33f03 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 12 Oct 2015 15:31:26 +0800 Subject: update Makefile.data --- scripts2/Makefile.data | 15 +++++++++++++++ scripts2/tools/distill.py | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 scripts2/Makefile.data (limited to 'scripts2') 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 diff --git a/scripts2/tools/distill.py b/scripts2/tools/distill.py index 8502605..fef40cd 100644 --- a/scripts2/tools/distill.py +++ b/scripts2/tools/distill.py @@ -40,8 +40,8 @@ def load_phrase(filename): phrasefile.close() -load_phrase("../../data/gb_char.table") -load_phrase("../../data/gbk_char.table") +load_phrase("../data/gb_char.table") +load_phrase("../data/gbk_char.table") def save_pinyin(filename): -- cgit