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>2012-11-19 21:59:33 +0400
committerKenneth Heafield <github@kheafield.com>2012-11-19 21:59:33 +0400
commitb7272b4de90d0848f35853fe2be7ecfd17f197a4 (patch)
tree2792907bf6b74850e7df8e1b5ec27125456cfb40 /jam-files
parentda39cff26f3107f26c08164bc396762d665db6aa (diff)
BINDIR and LIBDIR constants
Diffstat (limited to 'jam-files')
-rw-r--r--jam-files/sanity.jam12
1 files changed, 7 insertions, 5 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam
index 86bb78253..74803b142 100644
--- a/jam-files/sanity.jam
+++ b/jam-files/sanity.jam
@@ -199,7 +199,7 @@ if [ option.get "git" : : "yes" ] {
constant GITTAG : "" ;
}
-prefix = [ option.get "prefix" ] ;
+local prefix = [ option.get "prefix" ] ;
if $(prefix) {
prefix = [ path.root $(prefix) [ path.pwd ] ] ;
prefix = $(prefix)$(GITTAG) ;
@@ -207,11 +207,13 @@ if $(prefix) {
prefix = $(TOP)$(GITTAG) ;
}
-bindir = [ option.get "bindir" : $(prefix)/bin ] ;
-libdir = [ option.get "libdir" : $(prefix)/lib ] ;
+path-constant PREFIX : $(prefix) ;
+
+path-constant BINDIR : [ option.get "bindir" : $(PREFIX)/bin ] ;
+path-constant LIBDIR : [ option.get "libdir" : $(PREFIX)/lib ] ;
rule install-bin-libs ( deps * ) {
- install prefix-bin : $(deps) : <location>$(bindir) <install-dependencies>on <install-type>EXE <link>shared:<dll-path>$(libdir) ;
- install prefix-lib : $(deps) : <location>$(libdir) <install-dependencies>on <install-type>LIB <link>shared:<dll-path>$(libdir) ;
+ install prefix-bin : $(deps) : <location>$(BINDIR) <install-dependencies>on <install-type>EXE <link>shared:<dll-path>$(LIBDIR) ;
+ install prefix-lib : $(deps) : <location>$(LIBDIR) <install-dependencies>on <install-type>LIB <link>shared:<dll-path>$(LIBDIR) ;
}
rule install-headers ( name : list * : source-root ? ) {
local includedir = [ option.get "includedir" : $(prefix)/include ] ;