Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

BUG REPORT: The application can't determine return code of make process


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:
./ $target && $make -q -f $makefile

Return code is 1 (when I run it under bash command line). 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

--- Code: ---#!/bin/sh

#Скрипт генерирует мэйкфайл с добавлением значения параметра коммандной строки ($1) к переменной CONFIG Qt .pro файла. is for Qt env. variables
. ~/


echo CONFIG += $1 >

if [ $? -eq 0 ]; then
        qmake -makefile;
        exit 1;

--- End code ---

Just examine the work of CB yourself.


[0] Message Index

Go to full version