commit aee25722b1df796fa40e8b5d48d3bb30fade5705
parent cf338ea3de527a991c617d1224ee5f4444012085
Author: kyle <kyle@0x30.net>
Date: Sun, 29 Jan 2017 20:22:32 -0700
configure: set PREFIX here instead of in Jam
Diffstat:
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/bin/Jamfile b/bin/Jamfile
@@ -1,10 +1,6 @@
SubDir TOP bin ;
SubDirHdrs $(TOP) lib ;
-if ! $(PREFIX) {
- PREFIX = `pwd` ;
-}
-
actions ShellReplace {
sed -e "s, PREFIX ,$(PREFIX)," < $(>) > $(<)
chmod +x $(<)
diff --git a/configure b/configure
@@ -44,6 +44,7 @@ echo
# Write Jamrules. Any errors inside backticks get ignored.
cat <<EOF > Jamrules
+PREFIX ?= `pwd` ;
CC = ${CC-cc} ;
C++ = ${CXX-c++} ;