diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-05-08 22:42:09 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-05-08 22:42:09 +0400 |
commit | 10821a9980c5bdd29a0b03c5fe3a9e1fa7b52a5c (patch) | |
tree | 19f2fdc3ef54abb348bc22aa83e563a6e8e5148b /jam-files | |
parent | 7d247737ed319565243bc800307c4375c15afc18 (diff) |
When given a relative install path, interpret it relative to pwd.
Diffstat (limited to 'jam-files')
-rw-r--r-- | jam-files/sanity.jam | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam index 947574aac..b5cb09481 100644 --- a/jam-files/sanity.jam +++ b/jam-files/sanity.jam @@ -138,7 +138,12 @@ if [ option.get "git" : : "yes" ] { constant GITTAG : "" ; } -prefix = [ option.get "prefix" : $(TOP)/dist$(GITTAG) ] ; +prefix = [ option.get "prefix" ] ; +if $(prefix) { + prefix = [ path.root $(prefix) [ path.pwd ] ] ; +} else { + prefix = $(TOP)/dist$(GITTAG) ; +} rule install-bin-libs ( deps * ) { local bindir = [ option.get "bindir" : $(prefix)/bin ] ; local libdir = [ option.get "libdir" : $(prefix)/lib ] ; |