1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 20:35:44 +01:00

fix paths

This commit is contained in:
q-posev 2021-04-30 14:12:23 +02:00
parent ed77a86215
commit 203e9027a6
2 changed files with 7 additions and 4 deletions

View File

@ -90,7 +90,7 @@ cppcheck.out: $(HEADER_FILES) $(SOURCE_FILES)
trexio.c trexio_f.f90 trexio.h: $(ORG_FILES) trexio.c trexio_f.f90 trexio.h: $(ORG_FILES)
./build_trexio.sh cd ../tools && ./build_trexio.sh && cd ../src
test_c: libtrexio.so test.c test_c: libtrexio.so test.c

View File

@ -6,8 +6,13 @@ if [[ $(basename $PWD) != "tools" ]] ; then
exit -1 exit -1
fi fi
TREXIO_ROOT=$(dirname "${PWD}../")
# First define readonly global variables.
readonly SRC=${TREXIO_ROOT}/src
# Go to src directory # Go to src directory
cd ../src cd ${SRC}
# We want the script to crash on the 1st error: # We want the script to crash on the 1st error:
set -e set -e
@ -80,5 +85,3 @@ source build.sh
cp trexio* ../ cp trexio* ../
cd .. cd ..
# Come back to the TREXIO root directory
cd ..