diff options
author | Peng Wu <alexepico@gmail.com> | 2011-07-26 11:12:48 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-07-26 14:48:22 +0800 |
commit | 8ef85b7328061e215f928346cf0881d2808ad284 (patch) | |
tree | d88a33a8a571ec7cbb1a1af67146d601f966f5d2 | |
parent | 63e1d37800e2f2ecc71e347c79f85c772042d8d2 (diff) | |
download | libpinyin-8ef85b7328061e215f928346cf0881d2808ad284.tar.gz libpinyin-8ef85b7328061e215f928346cf0881d2808ad284.tar.xz libpinyin-8ef85b7328061e215f928346cf0881d2808ad284.zip |
add Makefile for data
-rw-r--r-- | Makefile.data | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.data b/Makefile.data new file mode 100644 index 0000000..8cff25f --- /dev/null +++ b/Makefile.data @@ -0,0 +1,16 @@ +CLEANUP_FILES = bigram.db gb_char.bin gbk_char.bin \ + phrase_index.bin pinyin_index.bin + +clean: + cd data ; $(RM) $(CLEANUP_FILES) ; cd $(CURDIR) + +build: + cd utils/storage ; ./gen_binary_files ; cd $(CURDIR) + cd utils/storage ; ./import_interpolation < ../../data/interpolation.text ; cd $(CURDIR) + +prepare: + sed -i -e "s/#define LAMBDA_PARAMETER 0.588792/#define LAMBDA_PARAMETER @@LAMBDA_PARAMETER@@/" src/include/novel_types.h + +rebuild: + sed -i -e "s/@@LAMBDA_PARAMETER@@/$(LAMBDA_PARAMETER)/" src/include/novel_types.h + make |