diff options
author | fujiwarat <takao.fujiwara1@gmail.com> | 2016-06-23 11:52:48 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2016-06-23 11:52:48 +0900 |
commit | 0ed644cd2b6c1d15bdba0d1c6d45d162b9b34806 (patch) | |
tree | da22274e1344aebd5df5025d857230be4f952e4d | |
parent | 160d3c975af91eea6b8271b757be769b8ceef98d (diff) | |
download | ibus-0ed644cd2b6c1d15bdba0d1c6d45d162b9b34806.tar.gz |
engine: Add emoji-list.html
Now we copied http://unicode.org/emoji/charts/emoji-list.html to
http://ibus.github.io/files/ibus/emoji-list.html
and download the file in the build time.
We don't save emoji-list.html in the tarball because the file size is
more than 5MB.
We always don't get the latest emoji-list.html to avoid the build error.
BUG=https://github.com/ibus/ibus/pull/1864
R=shawn.p.huang@gmail.com
Review URL: https://codereview.appspot.com/298580043
-rw-r--r-- | src/Makefile.am | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index a33b67dd..22e031fb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -29,6 +29,15 @@ endif SUBDIRS = . $(TESTS_DIR) +IBUS_V_wget = $(ibus__v_wget_@AM_V@) +ibus__v_wget_ = $(ibus__v_wget_@AM_DEFAULT_V@) +ibus__v_wget_0 = -nv +ibus__v_wget_1 = +IBUS_V_diff = $(ibus__v_diff_@AM_V@) +ibus__v_diff_ = $(ibus__v_diff_@AM_DEFAULT_V@) +ibus__v_diff_0 = -q +ibus__v_diff_1 = + # libibus = libibus-@IBUS_API_VERSION@.la libibus = libibus-1.0.la @@ -239,6 +248,18 @@ dict_DATA = emoji.dict noinst_PROGRAMS = emoji-parser +emoji-list.html: + $(AM_V_at)wget $(IBUS_V_wget) \ + http://ibus.github.io/files/ibus/emoji-list.html + $(AM_V_at)wget $(IBUS_V_wget) \ + http://unicode.org/emoji/charts/emoji-list.html \ + -O latest-emoji-list.html + $(AM_V_at)diff $(IBUS_V_diff) emoji-list.html latest-emoji-list.html; \ + if test $$? -ne 0; then \ + echo "#### WARNING: emoji-list.html is old." >&2; \ + fi; \ + rm latest-emoji-list.html; + emoji.dict: emoji-parser emoji-list.html $(builddir)/emoji-parser emoji-list.html $@ @@ -257,11 +278,11 @@ emoji_parser_LDADD = \ CLEANFILES += \ $(dict_DATA) \ + emoji-list.html \ $(NULL) endif EXTRA_DIST = \ - emoji-list.html \ emoji-parser.c \ ibusversion.h.in \ ibusmarshalers.list \ |