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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-10-25 18:46:54 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-10-25 18:46:54 +0300
commit5c748387474ebbbfb1692d5fb8e54079cd02a581 (patch)
tree89ee4f8348c3bd7761589752a41ab8853a8afde9 /contrib/Makefiles
parent58221ae4024bcfa35b8a054fe63b5b1164ee90b8 (diff)
Fixing Makefile for installing dependencies.
Diffstat (limited to 'contrib/Makefiles')
-rw-r--r--contrib/Makefiles/install-dependencies.gmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/Makefiles/install-dependencies.gmake b/contrib/Makefiles/install-dependencies.gmake
index c4183be45..e23bad161 100644
--- a/contrib/Makefiles/install-dependencies.gmake
+++ b/contrib/Makefiles/install-dependencies.gmake
@@ -10,6 +10,11 @@
#
# make -f /path/to/this/file PREFIX=/where/to/install/things
#
+
+# by default, we install in ./opt and build in ./build
+PREFIX ?= $(CWD)/opt
+BUILD_DIR = $(CWD)/opt/build/${URL}
+
# you can also specify specific prefixes for different packages:
XMLRPC_PREFIX ?= ${PREFIX}
CMPH_PREFIX ?= ${PREFIX}
@@ -27,9 +32,6 @@ SHELL = /bin/bash -e -o pipefail
# OPT: installation destination for 3-rd party libraries
CWD := $(shell cd . && pwd)
-# by default, we install in ./opt and build in ./build
-PREFIX ?= $(CWD)/opt
-BUILD_DIR = $(CWD)/opt/build/${URL}
# evaluate prefixes now to avoid recursive evaluation problems later ...
XMLRPC_PREFIX := ${XMLRPC_PREFIX}
@@ -51,7 +53,7 @@ configure-make-install += && make -j$(nproc) && make install
xmlrpc: URL=$(sourceforge)/xmlrpc-c/Xmlrpc-c%20Super%20Stable/1.33.17/xmlrpc-c-1.33.17.tgz
xmlrpc: TMP=$(CWD)/build/xmlrpc
xmlrpc: PREFIX=${XMLRPC_PREFIX}
-xmlrpc: | ${PREFIX}/bin/xmlrpc-c-config
+xmlrpc: | ${XMLRPC_PREFIX}/bin/xmlrpc-c-config
${XMLRPC_PREFIX}/bin/xmlrpc-c-config:
$(sfget)
$(call configure-make-install,${TMP}/xmlrpc-c-1.33.17)