10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-11-15 18:43:39 +01:00
qmcchem/install/scripts/install_f77_zmq.sh

24 lines
507 B
Bash
Raw Normal View History

2015-12-18 22:25:32 +01:00
#!/bin/bash -x
TARGET=f77_zmq
function _install()
{
2015-12-18 22:53:27 +01:00
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
2015-12-18 22:25:32 +01:00
set +u
2015-12-18 22:53:27 +01:00
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":../../../lib
2015-12-18 22:25:32 +01:00
set -e
set -u
cd "${BUILD}"
2015-12-18 22:53:27 +01:00
export ZMQ_H="${QMCCHEM_PATH}"/lib/zmq.h
2015-12-18 22:25:32 +01:00
cp "${ZMQ_H}" .
2015-12-18 22:53:27 +01:00
make -j 8
2015-12-18 22:25:32 +01:00
cd -
2015-12-18 22:53:27 +01:00
rm -f -- "${QMCCHEM_PATH}"/src/ZMQ/f77_zmq.h "${QMCCHEM_PATH}"/lib/libf77zmq.a "${QMCCHEM_PATH}"/lib/libf77zmq.so
2015-12-18 22:25:32 +01:00
cp "${BUILD}"/libf77zmq.{a,so} ../lib/
cp "${BUILD}"/f77_zmq.h ../src/ZMQ/
return 0
}
source scripts/build.sh