From a56b46a7dde09d7cb24abb53598bd777b5c89577 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Wed, 14 Nov 2018 12:39:23 +0000 Subject: Configuration stops if a dependency cannot be built Until now, we used semicolons in Make's Call function definitions to build the programs with GNU build system or CMake. Therefore, if any step of the process failed, the rest would be ignorant to it and pass. Now, we use `&&' to separate the different processing steps. In this way, we can be sure that if any of them fails (during configuration, or building for example), the pipeline will also stop and not continue to the next command (in the same recipe). Since the two Make Call functions were identical in the two `dependencies-basic.mk' and `dependencies.mk', they are now in one file to be imported in both. This bug was found by Raul Infante Sainz. --- configure | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 67804e8..8e15000 100755 --- a/configure +++ b/configure @@ -271,6 +271,7 @@ EOF ddir=$tmpddir echo " -- Using '$ddir'" fi + echo fi @@ -399,12 +400,21 @@ ln -s $(pwd)/reproduce/config/gnuastro .gnuastro # Build basic dependencies # ------------------------ tsec=10 -echo "----------------" -echo "Necessary reproduction pipeline dependencies will be built in $tsec sec." -echo -echo "NOTE: the built software will NOT BE INSTALLED on your system, they" -echo "are only for local usage by this reproduction pipeline (in '$bdir/dependencies/installed')" -echo +cat <