summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local>2012-05-27 15:05:56 -0400
committerKenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local>2012-05-27 15:05:56 -0400
commit6c3912d888580a41f0f98211507feaa1c92d422e (patch)
tree27b6fc76ac899623fcf3fcf86214fea1d41307c5
parentac1c480d92627f50bf97796c5592a6da77e1c591 (diff)
Add example installing perl script
-rw-r--r--Jamroot2
-rw-r--r--jam-files/sanity.jam5
2 files changed, 5 insertions, 2 deletions
diff --git a/Jamroot b/Jamroot
index c2e250d0..87a5a53d 100644
--- a/Jamroot
+++ b/Jamroot
@@ -31,6 +31,8 @@ project : default-build <warnings>on <variant>release ;
install-bin-libs dpmert//programs utils//programs mteval//programs klm/lm//programs training//liblbfgs decoder//cdec phrasinator//programs mira//kbest_mira ;
+install perl-scripts : dpmert//dpmert.pl : <location>$(bindir) ;
+
build-projects mteval decoder dpmert klm/lm training/liblbfgs ;
#Compile everything ending with _test.cc into a test and run it.
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam
index 4e0432f9..957f4f43 100644
--- a/jam-files/sanity.jam
+++ b/jam-files/sanity.jam
@@ -182,9 +182,10 @@ if $(prefix) {
} else {
prefix = $(TOP)/dist$(GITTAG) ;
}
+
+bindir = [ option.get "bindir" : $(prefix)/bin ] ;
+libdir = [ option.get "libdir" : $(prefix)/lib ] ;
rule install-bin-libs ( deps * ) {
- local bindir = [ option.get "bindir" : $(prefix)/bin ] ;
- local libdir = [ option.get "libdir" : $(prefix)/lib ] ;
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) ;
}