summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-10-23 11:10:29 +0800
committerPeng Wu <alexepico@gmail.com>2018-10-23 11:10:29 +0800
commit0fe50c3b4d0013cd6834653459f5504f9e636131 (patch)
tree179a1f43b0d09e97430633b0b04336f5b8052164
parent6f03b4d0583ace27f0066255b70a6178bd3cd79e (diff)
downloadibus-libzhuyin-0fe50c3b4d0013cd6834653459f5504f9e636131.zip
ibus-libzhuyin-0fe50c3b4d0013cd6834653459f5504f9e636131.tar.gz
ibus-libzhuyin-0fe50c3b4d0013cd6834653459f5504f9e636131.tar.xz
update Makefile.am
-rw-r--r--src/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 043a5b5..67099ac 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -134,6 +134,17 @@ CLEANFILES = \
libzhuyin.xml \
$(NULL)
+ZYTradSimpConverterTable.h:
+ $(AM_V_GEN) \
+ $(PYTHON) $(top_srcdir)/scripts/update-tradsimp-table.py > $@ || \
+ ( $(RM) $@; exit 1 )
+
+update-tradsimp-table:
+ $(RM) ZhConversion.php ZhConversion.py ZYTradSimpConverterTable.h
+ $(MAKE) ZhConversion.php
+ $(MAKE) ZhConversion.py
+ $(MAKE) ZYTradSimpConverterTable.h
+
libzhuyin.xml: libzhuyin.xml.in
$(AM_V_GEN) \
( \
@@ -142,3 +153,14 @@ libzhuyin.xml: libzhuyin.xml.in
s=`cat $<`; \
eval "echo \"$${s}\""; \
) > $@
+
+
+ZhConversion.php:
+ $(AM_V_GEN) \
+ curl https://raw.githubusercontent.com/wikimedia/mediawiki/master/languages/data/ZhConversion.php > $@ || \
+ ( $(RM) $@; exit 1 )
+
+ZhConversion.py: ZhConversion.php
+ $(AM_V_GEN) \
+ php $(top_srcdir)/scripts/php_2_py.php > $@ || \
+ ( $(RM) $@; exit 1 )