From f1bcc07f2465b53e25a077695415fe5c70a1e95c Mon Sep 17 00:00:00 2001 From: Alick Zhao Date: Fri, 27 Jul 2012 18:57:52 +0800 Subject: 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. --- data/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit