Build scripts from root.

This commit is contained in:
Kenneth Heafield 2011-11-25 16:53:02 +00:00
parent 871b8c5bd5
commit 3130534480
2 changed files with 15 additions and 14 deletions

View File

@ -14,9 +14,15 @@
#Note that, like language models, this is the --prefix where the library was
#installed, not some executable within the library.
#
#--with-giza=/path/to/giza
#Indicates where binaries GIZA++, snt2cooc.out, and mkcls live.
#Builds scripts/training/train-model.perl using these paths.
#
#--notrace compiles without TRACE macros
#
#INSTALLATION
#--install=/path/to/install sets the install directory (default dist).
#--install-scripts=/path/to/scripts copies scripts into a directory.
#--git appends the git revision to the install directory name.
#
# By default, the build is multi-threaded, optimized, and statically linked.
@ -136,6 +142,8 @@ build-project util ;
#Trigger instllation into legacy paths.
build-project moses-cmd/src ;
build-project moses-chart-cmd/src ;
#Scripts have their own binaries
build-project scripts ;
install-location = [ option.get "install" : $(TOP)/dist ] ;

View File

@ -1,20 +1,9 @@
#MOSES SCRIPTS INSTRUCTIONS
#
#--with-giza=/path/to/giza where GIZA++ binaries GIZA++, snt2cooc.out, and
# mkcls live.
#
#--install=/path/to/install to set a path to install (default dist)
#--git appends the git revision to the install directory
#
#--with-boost=/path/to/boost to specify a non-standard Boost installation
#
#See also: bjam --help one level up.
#See ../Jamroot for options.
import option ;
build-project training ;
location = [ option.get "install" : $(TOP)/scripts/dist ] ;
location = [ option.get "install-scripts" : $(TOP)/scripts/dist ] ;
location = $(location)$(GITTAG) ;
#These two used to live in a tools directory.
@ -44,8 +33,9 @@ if $(with-giza) {
install train-model : training//train-model.perl : <location>$(location)/training ;
} else {
echo "If you want training/train-model.perl, pass --with-giza=/path/to/giza" ;
echo "If you want scripts/training/train-model.perl, pass --with-giza=/path/to/giza" ;
constant WITH-GIZA : "no" ;
alias train-model ;
}
install scripts :
@ -145,3 +135,6 @@ install scripts :
recaser/detruecase.perl
recaser/train-truecaser.perl
: <install-source-root>. <location>$(location) ;
alias install : ghkm compactify phrase-extract lexical-reordering symal scripts train-model ;
explicit install ghkm compactify phrase-extract lexical-reordering symal scripts train-model ;