diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-05 20:39:07 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-05 20:44:36 +0800 |
commit | 589b10be816c4264fc1663f4680e4d71861f1682 (patch) | |
tree | 6afd902bc10eef7c16618c3f537b8436fd057010 /data/Makefile.am | |
parent | 0572b575851a7c7055ae10b7c22d072fe685c5be (diff) | |
download | libpinyin-589b10be816c4264fc1663f4680e4d71861f1682.tar.gz libpinyin-589b10be816c4264fc1663f4680e4d71861f1682.tar.xz libpinyin-589b10be816c4264fc1663f4680e4d71861f1682.zip |
refine autoconf
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index a9dab88..c1ad4d8 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -26,8 +26,7 @@ binary_model_data = gb_char.bin gbk_char.bin \ MAINTAINERCLEANFILES = Makefile.in -EXTRA_DIST = $(textual_model_data) \ - $(binary_model_data) +EXTRA_DIST = $(textual_model_data) libpinyin_db_DATA = $(binary_model_data) @@ -35,9 +34,7 @@ libpinyin_dbdir = $(pkgdatadir)/data CLEANFILES = $(binary_model_data) -build-data: $(textual_model_data) +$(binary_model_data): $(textual_model_data) $(RM) $(binary_model_data) - cd ../utils/storage ; ./gen_binary_files ; cd - - cd ../utils/storage ; ./import_interpolation < ../../data/interpolation.text ; cd - - -$(binary_model_data): build-data + cd ../utils/storage ; ./gen_binary_files --table-dir $(abs_top_srcdir)/data; cd - + cd ../utils/storage ; ./import_interpolation < $(abs_top_srcdir)/data/interpolation.text ; cd - |