From f8fce0f71d6900fc025a9b72feae7c80b5acb799 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 29 Apr 2014 15:04:19 +0200 Subject: [PATCH] Lmod added --- scripts/Lmod.build | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 scripts/Lmod.build diff --git a/scripts/Lmod.build b/scripts/Lmod.build new file mode 100755 index 0000000..8960394 --- /dev/null +++ b/scripts/Lmod.build @@ -0,0 +1,25 @@ +#!/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