diff options
author | Kenneth Heafield <github@kheafield.com> | 2011-11-28 16:01:33 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2011-11-28 16:01:33 +0400 |
commit | 180b74bcac55aff0d738a28fce27952deee8aee8 (patch) | |
tree | 49d7eb8c27c082183b01fdd164c3d75de57096e5 /Jamroot | |
parent | ab9976b719f8db8a8d2022fe90fb9be8de006954 (diff) |
prefix style of installation
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 27 |
1 files changed, 12 insertions, 15 deletions
@@ -21,9 +21,11 @@ # # #INSTALLATION -#--install=/path/to/install sets the install directory (default dist). +#--prefix=/path/to/prefix sets the install prefix [dist]. +#--bindir=/path/to/prefix/bin sets the bin directory [PREFIX/bin] +#--libdir=/path/to/prefix/lib sets the lib directory [PREFIX/lib] #--install-scripts=/path/to/scripts copies scripts into a directory. -#--git appends the git revision to the install directory name. +#--git appends the git revision to the prefix directory. # # #BUILD OPTIONS @@ -180,20 +182,15 @@ install-location = [ option.get "install" : $(TOP)/dist ] ; if [ option.get "git" : : "yes" ] { local revision = [ _shell "git rev-parse --verify HEAD |head -c 7" ] ; - constant GITTAG : "."$(revision) ; + constant GITTAG : "/"$(revision) ; } else { constant GITTAG : "" ; } -install-location = $(install-location)$(GITTAG) ; - -install dist : - lm//query - lm//build_binary - moses-chart-cmd/src//moses_chart - moses-cmd/src//programs - CreateOnDisk/src//CreateOnDisk - mert//programs - contrib/server//mosesserver - misc//programs - : <location>$(install-location) <install-type>EXE <install-dependencies>on <link>shared:<dll-path>$(install-location) <link>shared:<install-type>LIB ; +alias programs : lm//query lm//build_binary moses-chart-cmd/src//moses_chart moses-cmd/src//programs CreateOnDisk/src//CreateOnDisk mert//programs contrib/server//mosesserver misc//programs ; + +prefix = [ option.get "prefix" : $(TOP)/dist$(GITTAG) ] ; +bindir = [ option.get "bindir" : $(prefix)/bin ] ; +libdir = [ option.get "libdir" : $(prefix)/lib ] ; +install prefix-bin : programs : <location>$(bindir) <install-dependencies>on <install-type>EXE <link>shared:<dll-path>$(libdir) ; +install prefix-lib : programs : <location>$(libdir) <install-dependencies>on <install-type>LIB <link>shared:<dll-path>$(libdir) ; |