summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-10-14 13:44:25 +0800
committerPeng Wu <alexepico@gmail.com>2013-10-14 13:44:25 +0800
commit6377b302af8aa66eaead9b8e4d13ad5e3f8faad3 (patch)
tree6df20ec2bfcdc6214460293b762ac9dd11a36c9e /utils
parent8c4416a0b02ee81925ab200be91e6a0a3de016fa (diff)
downloadlibpinyin-6377b302af8aa66eaead9b8e4d13ad5e3f8faad3.zip
libpinyin-6377b302af8aa66eaead9b8e4d13ad5e3f8faad3.tar.gz
libpinyin-6377b302af8aa66eaead9b8e4d13ad5e3f8faad3.tar.xz
clean up Makefile.am
Diffstat (limited to 'utils')
-rw-r--r--utils/segment/Makefile.am8
-rw-r--r--utils/storage/Makefile.am18
-rw-r--r--utils/training/Makefile.am31
3 files changed, 10 insertions, 47 deletions
diff --git a/utils/segment/Makefile.am b/utils/segment/Makefile.am
index 579d6e4..8c081d1 100644
--- a/utils/segment/Makefile.am
+++ b/utils/segment/Makefile.am
@@ -24,16 +24,12 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/utils \
@GLIB2_CFLAGS@
+LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
+
noinst_PROGRAMS = spseg ngseg mergeseq
spseg_SOURCES = spseg.cpp
-spseg_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
ngseg_SOURCES = ngseg.cpp
-ngseg_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
mergeseq_SOURCES = mergeseq.cpp
-
-mergeseq_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
diff --git a/utils/storage/Makefile.am b/utils/storage/Makefile.am
index db63488..376c0e7 100644
--- a/utils/storage/Makefile.am
+++ b/utils/storage/Makefile.am
@@ -22,24 +22,18 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/utils \
@GLIB2_CFLAGS@
-bin_PROGRAMS = gen_binary_files \
- import_interpolation
+LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-noinst_PROGRAMS = export_interpolation \
- gen_pinyin_table
+bin_PROGRAMS = gen_binary_files \
+ import_interpolation
-gen_binary_files_SOURCES = gen_binary_files.cpp
+noinst_PROGRAMS = export_interpolation \
+ gen_pinyin_table
-gen_binary_files_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
+gen_binary_files_SOURCES = gen_binary_files.cpp
import_interpolation_SOURCES = import_interpolation.cpp
-import_interpolation_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
export_interpolation_SOURCES = export_interpolation.cpp
-export_interpolation_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
gen_pinyin_table_SOURCES = gen_pinyin_table.cpp
-
-gen_pinyin_table_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
diff --git a/utils/training/Makefile.am b/utils/training/Makefile.am
index dc834ec..8ed4806 100644
--- a/utils/training/Makefile.am
+++ b/utils/training/Makefile.am
@@ -24,6 +24,8 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/utils \
@GLIB2_CFLAGS@
+LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
+
noinst_HEADERS = k_mixture_model.h
bin_PROGRAMS = gen_unigram
@@ -43,55 +45,26 @@ noinst_PROGRAMS = gen_ngram \
gen_ngram_SOURCES = gen_ngram.cpp
-gen_ngram_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
gen_deleted_ngram_SOURCES = gen_deleted_ngram.cpp
-gen_deleted_ngram_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
gen_unigram_SOURCES = gen_unigram.cpp
-gen_unigram_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
gen_k_mixture_model_SOURCES = gen_k_mixture_model.cpp
-gen_k_mixture_model_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
estimate_interpolation_SOURCES = estimate_interpolation.cpp
-estimate_interpolation_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
estimate_k_mixture_model_SOURCES = estimate_k_mixture_model.cpp
-estimate_k_mixture_model_LDADD = ../../src/libpinyin_internal.la \
- @GLIB2_LIBS@
-
merge_k_mixture_model_SOURCES = merge_k_mixture_model.cpp
-merge_k_mixture_model_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
prune_k_mixture_model_SOURCES = prune_k_mixture_model.cpp
-prune_k_mixture_model_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
import_k_mixture_model_SOURCES = import_k_mixture_model.cpp
-import_k_mixture_model_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
export_k_mixture_model_SOURCES = export_k_mixture_model.cpp
-export_k_mixture_model_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@
-
k_mixture_model_to_interpolation_SOURCES = k_mixture_model_to_interpolation.cpp
-k_mixture_model_to_interpolation_LDADD = ../../src/libpinyin_internal.la \
- @GLIB2_LIBS@
-
validate_k_mixture_model_SOURCES = validate_k_mixture_model.cpp
-validate_k_mixture_model_LDADD = ../../src/libpinyin_internal.la \
- @GLIB2_LIBS@
-
eval_correction_rate_SOURCES = eval_correction_rate.cpp
-
-eval_correction_rate_LDADD = ../../src/libpinyin_internal.la @GLIB2_LIBS@