summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.data
blob: 1457407ae1abb286cc614d8497d1b9f4cdca8fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all: pinyins.txt


pinyins.txt:
	awk -f genpinyins.awk -vlen=1 ../data/gb_char.table \
	../data/gbk_char.table > $@
	awk -f genpinyins.awk -vlen=2 ../data/gb_char.table >> $@


update-header:
	python3 genpinyinheader.py > ../src/storage/pinyin_parser_table.h
	python3 gendoublepinyinheader.py > ../src/storage/double_pinyin_table.h
	python3 genbopomofoheader.py > ../src/storage/chewing_table.h
	python3 genchewingkey.py > ../src/storage/chewing_enum.h


.PHONY: pinyins.txt