Author Topic: make: *** No rule to make target  (Read 22083 times)

Offline Pavel_47

  • Multiple posting newcomer
  • *
  • Posts: 66
make: *** No rule to make target
« 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

Offline koonschi

  • Multiple posting newcomer
  • *
  • Posts: 27
    • My personal project
Re: make: *** No rule to make target
« Reply #1 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.
"As a general rule, the compiler is smarter than you, and working in your best interest. Do not question it." - Terry Mahaffey

#define TRUE FALSE // happy debugging suckers

Offline Pavel_47

  • Multiple posting newcomer
  • *
  • Posts: 66
Re: make: *** No rule to make target
« Reply #2 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: make: *** No rule to make target
« Reply #3 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.