Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » c++ Master Makefiles - no rule to make 'all'(build error - make: * No rule to make target `all'. Stop.")
c++ Master Makefiles - no rule to make 'all' [message #542297] Thu, 24 June 2010 09:31 Go to next message
Eclipse UserFriend
Hello, I've just started a new project at work, the guys that have been working on it previously have been coding c++ and using VIM as an editor. I'm trying to get eclipse running with their codebase (for a more helpful programming environment). I'm not very experienced in c++ but here's the problem:

There's a master makefile in the parent folder that runs through and executes custom make files in all child application folders. I think because of this when i setup an eclipse C++ project and try to build, i get an error saying

"make all
make: *** No rule to make target `all'. Stop."

I also have eclipse set 'not' to automatically generate make files.

i've checked every make file in the sub directories, as well as the master makefile, and each one has an 'all' target in the file. Any clues as to a way around this? Is there anyway i can point eclipse to the master makefile to get executed every time i build?

[Updated on: Thu, 24 June 2010 09:38] by Moderator

Re: c++ Master Makefiles - no rule to make 'all' [message #542307 is a reply to message #542297] Thu, 24 June 2010 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Hello 'No Real Name' Confused

I assume, that there is a MAKE tool present, which processes the master makefile.
I also assume, that there is a commandline call to that MAKE tool to actually 'make' the project.

So here is my solution:

- Create your Eclipse project as an 'Empty Makefile project'.
(Maybe you need for this a toolchain, for example MinGW.)

- Under 'Project | Properties | C/C++ Build' create a 'Build Configuration' with a name of your choice, uncheck 'Use default build command' and fill in at 'Build command' ONLY the call to the MAKE tool.

- In the register 'Behaviour' check 'Build (Incremental build)' and fill the line behind with the PARAMETERS needed for the make process e.g. the master makefile.

Then you have a Build configuration, which can be called e.g. via 'Ctrl-B' or clicking on the 'hammer' symbol.

Hope that helps.
Re: c++ Master Makefiles - no rule to make 'all' [message #542313 is a reply to message #542297] Thu, 24 June 2010 10:07 Go to previous message
Eclipse UserFriend
Thank you for your quick reply!

I figured all the parameters out. Again thanks a lot for your help, this was setting me back a day or so fiddling around with settings.

[Updated on: Thu, 24 June 2010 10:27] by Moderator

Previous Topic:Where is CODAN?
Next Topic:Helios: 'Printing Selection' does not work
Goto Forum:
  


Current Time: Wed Sep 24 23:19:43 EDT 2025

Powered by FUDForum. Page generated in 0.03994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top