summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlick Zhao <alick9188@gmail.com>2012-07-27 18:57:52 +0800
committerAlick Zhao <alick9188@gmail.com>2012-07-27 18:57:52 +0800
commitf1bcc07f2465b53e25a077695415fe5c70a1e95c (patch)
tree813c5e91cc7801028cf1c03d87e344acecb05aa0
parent3f74e38f850f232c7b2637a4b70adc8ab9e0b903 (diff)
downloadlibpinyin-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.
-rw-r--r--data/Makefile.am3
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