Author Topic: make: *** No rule to make target `Debug'. Stop.  (Read 10787 times)

Offline fh.bui

  • Single posting newcomer
  • *
  • Posts: 3
make: *** No rule to make target `Debug'. Stop.
« on: May 03, 2011, 02:08:50 pm »
Hello everyone. I am a bloody new user of code::blocks.

I have some problems compiling a gtk+-project (v.1.x.x) using code::blocks.

I got this error from the build-log:

-------------- Build: Debug in surfwithcodeblock ---------------

Using makefile: Makefile
make: *** No rule to make target `Debug'.  Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
While i was executing make and make install from the shell, i didnt get this error.

Can someone pls help me to solve this problem?






« Last Edit: May 03, 2011, 02:15:43 pm by fh.bui »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: make: *** No rule to make target `Debug'. Stop.
« Reply #1 on: May 03, 2011, 02:51:51 pm »
Start reading here: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Then search the forum for "custom makefile"
(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 fh.bui

  • Single posting newcomer
  • *
  • Posts: 3
Re: make: *** No rule to make target `Debug'. Stop.
« Reply #2 on: May 04, 2011, 11:14:55 am »
Hello and thank you very much for your fast answer.
But the problems do still remain after binding the custom makefile into the project.

The custom makefile was directly generated after the execution of the configure script.
I have also tried to modify the make command for building the project.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: make: *** No rule to make target `Debug'. Stop.
« Reply #3 on: May 04, 2011, 03:28:34 pm »
1. Rename the "Debug" target to match the makefile target or edit the makefile to have an "Debug" target
2. Search this site for other ways to do it.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: make: *** No rule to make target `Debug'. Stop.
« Reply #4 on: May 04, 2011, 08:25:57 pm »
1. Rename the "Debug" target to match the makefile target or edit the makefile to have an "Debug" target
2. Search this site for other ways to do it.

Tim S.

You have to fix "Project -> Build options -> Make commands" to fit your needs.

Offline fh.bui

  • Single posting newcomer
  • *
  • Posts: 3
Re: make: *** No rule to make target `Debug'. Stop.
« Reply #5 on: May 07, 2011, 01:06:39 pm »
Thank you guys for your help. I will try the posted solution and state the result.