diff options
author | Kenneth Heafield <github@kheafield.com> | 2011-12-05 15:01:34 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2011-12-05 15:01:34 +0400 |
commit | b8b009136f6079744417d7e1bc7863b7f0876b6e (patch) | |
tree | 7d216bfa01cb45dcb5ea6a9824d1f0c3e9d1091d /scripts | |
parent | 7cc0ea81b76a4d5c6db508b3e9410ddecaefbe6e (diff) |
Clean train-model-perl even if --with-giza isn't passed.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Jamfile | 4 | ||||
-rw-r--r-- | scripts/training/Jamfile | 2 |
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)\";#' $(>) >$(<) |