Author Topic: BUG REPORT: The application can't determine return code of make process  (Read 515 times)

Offline normann

  • Multiple posting newcomer
  • *
  • Posts: 10
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)".

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10904
    • Travis build status
Re: BUG REPORT: The application can't determine return code of make process
« Reply #1 on: December 28, 2017, 02:35:22 pm »
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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline normann

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: BUG REPORT: The application can't determine return code of make process
« Reply #2 on: January 10, 2018, 09:01:45 am »
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)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10904
    • Travis build status
Re: BUG REPORT: The application can't determine return code of make process
« Reply #3 on: January 10, 2018, 09:52:45 am »
What happens if you put these in a script file?
I'm not sure we execute anded commands well.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline normann

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: BUG REPORT: The application can't determine return code of make process
« Reply #4 on: January 16, 2018, 10:27:46 am »
When I run it under command line, its result is ok.
I provide you citation of the gen_target.sh
Code: [Select]
#!/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.
« Last Edit: January 16, 2018, 10:29:23 am by normann »