Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2011-12-05 15:01:34 +0400
committerKenneth Heafield <github@kheafield.com>2011-12-05 15:01:34 +0400
commitb8b009136f6079744417d7e1bc7863b7f0876b6e (patch)
tree7d216bfa01cb45dcb5ea6a9824d1f0c3e9d1091d /scripts
parent7cc0ea81b76a4d5c6db508b3e9410ddecaefbe6e (diff)
Clean train-model-perl even if --with-giza isn't passed.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Jamfile4
-rw-r--r--scripts/training/Jamfile2
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Jamfile b/scripts/Jamfile
index 48535faa3..e33544d17 100644
--- a/scripts/Jamfile
+++ b/scripts/Jamfile
@@ -26,7 +26,9 @@ if $(with-giza) {
check-for-bin snt2cooc.out ;
check-for-bin mkcls ;
} else {
- echo "If you want scripts/training/train-model.perl, pass --with-giza=/path/to/giza-pp" ;
+ if $(CLEANING) = no {
+ echo "If you want scripts/training/train-model.perl, pass --with-giza=/path/to/giza-pp" ;
+ }
constant WITH-GIZA : "no" ;
}
diff --git a/scripts/training/Jamfile b/scripts/training/Jamfile
index e8571d65f..8ca408d07 100644
--- a/scripts/training/Jamfile
+++ b/scripts/training/Jamfile
@@ -3,7 +3,7 @@ build-project phrase-extract ;
build-project lexical-reordering ;
build-project symal ;
-if $(WITH-GIZA) != no {
+if $(WITH-GIZA) != no || $(CLEANING) != no {
make train-model.perl : train-model.perl.missing_bin_dir : @missing_bin_dir ;
actions missing_bin_dir {
sed 's#^my \$BINDIR\s*=.*#my\ \$BINDIR=\"$(WITH-GIZA)\";#' $(>) >$(<)