fixes parallel make
authorPeng Wu <alexepico@gmail.com>
Mon, 26 Dec 2011 10:34:49 +0000 (18:34 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 26 Dec 2011 10:34:49 +0000 (18:34 +0800)
data/Makefile.am

index 25e4683..6f74f4e 100644 (file)
@@ -34,16 +34,22 @@ libpinyin_dbdir             = $(pkgdatadir)/data
 
 CLEANFILES             = $(binary_model_data)
 
-$(textual_model_data):
+model.text.tar.gz:
        wget https://github.com/downloads/libpinyin/libpinyin/model.text.tar.gz
+
+interpolation.text: model.text.tar.gz
        tar xvf model.text.tar.gz
 
-$(binary_model_data): $(textual_model_data)
+gb_char.table gbk_char.table: interpolation.text
+
+bigram.db: $(textual_model_data)
        $(RM) $(binary_model_data)
        ../utils/storage/gen_binary_files --table-dir $(top_srcdir)/data
        ../utils/storage/import_interpolation < $(top_srcdir)/data/interpolation.text
        ../utils/training/gen_unigram
 
+gb_char.bin gbk_char.bin phrase_index.bin pinyin_index.bin: bigram.db
+
 rebuild:
        git reset --hard
        sed -i -e "s/#define LAMBDA_PARAMETER 0.588792/#define LAMBDA_PARAMETER $(LAMBDA_PARAMETER)/" ../src/include/novel_types.h