diff options
author | Alick Zhao <alick9188@gmail.com> | 2012-07-27 18:57:52 +0800 |
---|---|---|
committer | Alick Zhao <alick9188@gmail.com> | 2012-07-27 18:57:52 +0800 |
commit | f1bcc07f2465b53e25a077695415fe5c70a1e95c (patch) | |
tree | 813c5e91cc7801028cf1c03d87e344acecb05aa0 /data/Makefile.am | |
parent | 3f74e38f850f232c7b2637a4b70adc8ab9e0b903 (diff) | |
download | libpinyin-f1bcc07f2465b53e25a077695415fe5c70a1e95c.tar.gz libpinyin-f1bcc07f2465b53e25a077695415fe5c70a1e95c.tar.xz libpinyin-f1bcc07f2465b53e25a077695415fe5c70a1e95c.zip |
fix out of tree build when using git src repo
The out of tree build failure only occurs when using git dev version.
It results from mismatch directory for textual data files.
It does not happen when using distributed tar ball because the textual
data files are distributed in the archive's data directory.
This patch will workaround the problem by uncompressing downloaded
textual data archive into src/data directory.
Note in this way we cannot do VPATH build when developing. Let's just
assume that use case is rare.
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index a87ddb0..ec5acd0 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -36,7 +36,8 @@ CLEANFILES = $(binary_model_data) interpolation.text: wget https://github.com/downloads/libpinyin/libpinyin/model.text.tar.gz - tar xvf model.text.tar.gz + tar xvf model.text.tar.gz -C $(top_srcdir)/data + gb_char.table gbk_char.table: interpolation.text |