Commit 5782da5b authored by Valeri Markushin's avatar Valeri Markushin
Browse files

Merge branch 'master' of gitorious.psi.ch:scicomp/psi-modules-buildenvironment

parents fc5c0fbd f8fce0f7
......@@ -388,12 +388,10 @@ function _cleanup_build() {
function em.cleanup_src() {
(
[[ -d /${EM_SRCDIR} ]] || return 0
cd "/${EM_SRCDIR}";
cd "/${EM_SRCDIR}/..";
if [[ $(pwd) != / ]]; then
echo "Cleaning up $(pwd)"
rm -rf *
cd ..
rmdir "/${EM_SRCDIR}"
rm -rf ${EM_SRCDIR##*/}
fi
);
}
......
#!/bin/bash
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
cd "${EM_SRCDIR}"
"${EM_SRCDIR}"/configure \
--prefix="${EM_PREFIX}/core" \
--with-module-root-path="${MODULEPATH_ROOT}" \
|| exit 1
}
function em.build() {
cd "${EM_SRCDIR}"
make -j ${JOBS}
}
# use system gcc to compile
declare -rx CC=gcc
em.add_to_family "core"
em.set_build_dependencies "lua"
em.make_all
em.cleanup_src
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment