mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Fix PREFIX when overridden by command line argument
When PREFIX=... is provided, the `override` directive must be supplied in order to actually use the *_PREFIX value. In practice this is only a problem for IRSTLM, which is supposed to be in $PREFIX/irstlm-$VERSION.
This commit is contained in:
parent
f4882f445a
commit
0ab80dc306
@ -61,7 +61,7 @@ configure-make-install += && make -j${nproc} && make install
|
||||
# XMLRPC-C for moses server
|
||||
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: override PREFIX=${XMLRPC_PREFIX}
|
||||
xmlrpc: | $(call safepath,${XMLRPC_PREFIX}/bin/xmlrpc-c-config)
|
||||
$(call safepath,${XMLRPC_PREFIX}/bin/xmlrpc-c-config):
|
||||
$(sfget)
|
||||
@ -71,7 +71,7 @@ $(call safepath,${XMLRPC_PREFIX}/bin/xmlrpc-c-config):
|
||||
# CMPH for CompactPT
|
||||
cmph: URL=$(sourceforge)/cmph/cmph/cmph-2.0.tar.gz
|
||||
cmph: TMP=$(CWD)/build/cmph
|
||||
cmph: PREFIX=${CMPH_PREFIX}
|
||||
cmph: override PREFIX=${CMPH_PREFIX}
|
||||
cmph: | $(call safepath,${CMPH_PREFIX}/bin/cmph)
|
||||
$(call safepath,${CMPH_PREFIX}/bin/cmph):
|
||||
$(sfget)
|
||||
@ -82,7 +82,7 @@ $(call safepath,${CMPH_PREFIX}/bin/cmph):
|
||||
irstlm: URL=$(sourceforge)/irstlm/irstlm/irstlm-5.80/irstlm-5.80.08.tgz
|
||||
irstlm: TMP=$(CWD)/build/irstlm
|
||||
irstlm: VERSION=$(basename $(notdir $(irstlm_url)))
|
||||
irstlm: PREFIX=${IRSTLM_PREFIX}
|
||||
irstlm: override PREFIX=${IRSTLM_PREFIX}
|
||||
irstlm: | $(call safepath,$(IRSTLM_PREFIX)/bin/build-lm.sh)
|
||||
$(call safepath,$(IRSTLM_PREFIX)/bin/build-lm.sh):
|
||||
$(sfget)
|
||||
@ -93,7 +93,7 @@ $(call safepath,$(IRSTLM_PREFIX)/bin/build-lm.sh):
|
||||
# boost
|
||||
boost: URL=http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download
|
||||
boost: TMP=$(CWD)/build/boost
|
||||
boost: PREFIX=${BOOST_PREFIX}
|
||||
boost: override PREFIX=${BOOST_PREFIX}
|
||||
boost: | $(call safepath,${BOOST_PREFIX}/include/boost)
|
||||
$(call safepath,${BOOST_PREFIX}/include/boost):
|
||||
$(sfget)
|
||||
|
Loading…
Reference in New Issue
Block a user