Page 1 of 1

Prebuild command that runs make

Posted: Fri Oct 07, 2011 2:25 am
by tankist02
When I have the following pre-build command:
cd ../linux;make -f Makefile.proto;cd -

I get the following warning:
warning: jobserver unavailable: using -j1. Add `+' to parent make rule.

After I changed the command to this:
cd ../linux;make -j5 -f Makefile.proto;cd -

I got this warning:
warning: -jN forced in submake: disabling jobserver mode.

This is not a critical error - the job is done correctly. Still it would be nice to get rid of build warnings.

Re: Prebuild command that runs make

Posted: Sat Oct 08, 2011 8:29 pm
by eranif
It is make errors - not codelite errors..
The problem is somewhere in your makefile Makefile.proto

Eran

Re: Prebuild command that runs make

Posted: Tue Oct 11, 2011 4:24 am
by tankist02
When I run the Makefile.proto from shell (not from inside CL) like this:

Code: Select all

make -f Makefile.proto
or this:

Code: Select all

make -j5 -f Makefile.proto
I don't get any errors.

Does CL run external Makefiles somewhat differently?

Re: Prebuild command that runs make

Posted: Tue Oct 11, 2011 12:57 pm
by eranif
codelite is executing the prebuild command from inside a makefile, in this case, your make command is a recursive one.
To avoid this error, you should change your command to (not tested yet):

Code: Select all

$(MAKE) -f Makefile.proto
As described here:
http://sunsite.ualberta.ca/Documentatio ... html#SEC51

Like always, when you get build errors, please submit the *full* build log - not only the part you think are relevant
as described here:
viewtopic.php?f=3&t=804

Eran

Re: Prebuild command that runs make

Posted: Wed Oct 12, 2011 12:12 am
by tankist02
Thanks a lot, Eran, works as charm.