blob: cf7fe2552f355b817a88338ce1fe2c2d90fca451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
local current = ;
local includes = ;
local with-cmph = [ option.get "with-cmph" ] ;
if $(with-cmph) {
lib cmph : : <search>$(with-cmph)/lib ;
includes += <include>$(with-cmph)/include ;
current += "--with-cmph=$(with-cmph)" ;
}
else {
alias cmph ;
}
alias sources : [ glob *.cpp ] ;
lib CompactPT : sources ..//moses_internal cmph : $(includes) ;
path-constant PT-LOG : bin/pt.log ;
current = $(current:J=" ") ;
current ?= "" ;
always-if-changed $(PT-LOG) $(current) : sources ;
|