mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
18 lines
499 B
Plaintext
18 lines
499 B
Plaintext
local current = "" ;
|
|
local includes = ;
|
|
local with-cmph = [ option.get "with-cmph" ] ;
|
|
if $(with-cmph) {
|
|
lib cmph : : <search>$(with-cmph)/lib <search>$(with-cmph)/lib64 ;
|
|
includes += <include>$(with-cmph)/include ;
|
|
current = "--with-cmph=$(with-cmph)" ;
|
|
fakelib CompactPT : [ glob *.cpp ] ../..//headers cmph : $(includes) <dependency>$(PT-LOG) : : $(includes) ;
|
|
}
|
|
else {
|
|
alias cmph ;
|
|
fakelib CompactPT ;
|
|
}
|
|
|
|
path-constant PT-LOG : bin/pt.log ;
|
|
update-if-changed $(PT-LOG) $(current) ;
|
|
|