Commit 02dca5a7 authored by Matthias Redies's avatar Matthias Redies

add compiler name to external files -> no recompilation

parent 046cb70b
hdf5_version=1.10.3
if [ ! -r CMake-hdf5-${hdf5_version} ]
if [ ! -r CMake-hdf5-${hdf5_version}_${FC} ]
then
#Get the file with the code
curl -LO "https://github.com/MRedies/hdf5-mirror/raw/master/CMake-hdf5-${hdf5_version}.tar.gz"
......@@ -10,7 +10,8 @@ then
fi
tar xzf CMake-hdf5-${hdf5_version}.tar.gz
cd CMake-hdf5-${hdf5_version}
mv CMake-hdf5-${hdf5_version} CMake-hdf5-${hdf5_version}_${FC}
cd CMake-hdf5-${hdf5_version}_${FC}
#copy options.cmake to adjust settings for compilation
cp ../HDF5options.cmake .
#Compile&test (This will take a while)
......@@ -20,7 +21,7 @@ then
make install
cd ..
else
cd CMake-hdf5-${hdf5_version}
cd CMake-hdf5-${hdf5_version}_${FC}
fi
#Store the installation location
FLEUR_LIBDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/lib $FLEUR_LIBDIR"
......
libxc_version=4.2.1
if [ ! -d libxc-${libxc_version} ]
if [ ! -d libxc-${libxc_version}_${FC} ]
then
#Get the file with the code
curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-${libxc_version}.tar.gz"
......@@ -10,13 +10,14 @@ then
fi
tar xzf libxc-${libxc_version}.tar.gz
cd libxc-${libxc_version}
mv libxc-${libxc_version} libxc-${libxc_version}_${FC}
cd libxc-${libxc_version}_${FC}
#Compile&test (This will take a while)
./configure --prefix=$PWD/INSTALL_DIR
make -j
make install
else
cd libxc-${libxc_version}
cd libxc-${libxc_version}_${FC}
fi
#Store the installation location
FLEUR_LIBDIR="$PWD/INSTALL_DIR/lib $FLEUR_LIBDIR"
......
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