If I switch on the option of "This is a custom Makefile" in the project settings then the application can't determine correct return code of $make process and after trying to "$make -q -f $makefile" joyfully reports to me that "Nothing to be done (all items are up-to-date)".
And what is the exit code of this command if you execute it in terminal?
Can you post some version information of cb,os,compiler,make, etc...
The command is:
./gen_target.sh $target && $make -q -f $makefile
Return code is 1 (when I run it under bash command line).
gen_target.sh is script generating a makefile.
x86_64 GNU/Linux
GNU Make 3.82
CB svn 11246
gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)
What happens if you put these in a script file?
I'm not sure we execute anded commands well.
When I run it under command line, its result is ok.
I provide you citation of the gen_target.sh
#!/bin/sh
#Скрипт генерирует мэйкфайл с добавлением значения параметра коммандной строки ($1) к переменной CONFIG Qt .pro файла.
#qt.sh is for Qt env. variables
. ~/qt.sh
rm target.pro
echo CONFIG += $1 > target.pro
if [ $? -eq 0 ]; then
qmake -makefile tableview2.pro;
else
exit 1;
fi
Just examine the work of CB yourself.