Code::Blocks Forums

User forums => Embedded development => Topic started by: Pavel_47 on September 05, 2014, 12:39:03 pm

Title: make: *** No rule to make target
Post by: Pavel_47 on September 05, 2014, 12:39:03 pm
Hello,

Attempt to build a project produce the following error (extract from Build log):

Running command: make.exe -f Makefile Release
using saved target 'cc2538dk'
make: *** No rule to make target 'Release'.  Stop.

What does this message mean ?
This happans in spite of I have set all parameters in project settings as those in another project (that is successfully built).

What should I check else ?

Thanks in advance

BR

Pavel

P.S. I could build the source file just employing make command in command prompt:
make TARGET=cc2538dk all

But working this way I can't use Code::Block facilities ... such as exploring project hierarchy
Title: Re: make: *** No rule to make target
Post by: koonschi on September 05, 2014, 01:19:57 pm
The make command will use the target that you configured in your project settings as target for the makefile.
Usually the existing targets are Debug and Release if you create a new project. Make sure these target names match the targets in your makefile.
Title: Re: make: *** No rule to make target
Post by: Pavel_47 on September 16, 2014, 05:37:47 pm
Resolved

In the Project build options --> "Make" Commands, the Build project/target command must be:

$make -f $makefile

i.e. without anything after $makefile

BR

Pavel
Title: Re: make: *** No rule to make target
Post by: Jenna on September 16, 2014, 07:08:50 pm
Resolved

In the Project build options --> "Make" Commands, the Build project/target command must be:

$make -f $makefile

i.e. without anything after $makefile

BR

Pavel
That's only correct, if you use the makefile with the default target.