|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
C++ eclipse makefile issuesHi,
Might be a bit off-topic, but just in case someone has already encountered a similar problem:
We have a C++ project set to build continuously via cruisecontrol.rb. The IDE used for development is eclipse, which automatically generates a makefile for the project. The problem is that each time a new subdirectory is added, eclipse generates a "sub-makefile" (called subdir.mk) - which must be added to sourcecontrol manually for the project to compile on the build machine. People fail to do this and the build is continuously failing.
Any ideas?
Thanks,
Jonathan _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: C++ eclipse makefile issuesJonathan Naor wrote:
> Hi, Hi. > [...] The problem is that each time a new > subdirectory is added, eclipse generates a "sub-makefile" (called > subdir.mk <http://subdir.mk>) - which must be added to sourcecontrol > manually for the project to compile on the build machine. Add a pre-commit hook that runs 'make -n'. If it returns an error code (e.g., because subdir.mk is missing), reject the commit. Regards, -- Bil Kleb http://fun3d.larc.nasa.gov http://twitter.com/bil_kleb _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: C++ eclipse makefile issuesOn 12 Feb 2009, at 06:26, Jonathan Naor wrote: > Hi, > > Might be a bit off-topic, but just in case someone has already > encountered a similar problem: > We have a C++ project set to build continuously via > cruisecontrol.rb. The IDE used for development is eclipse, which > automatically generates a makefile for the project. The problem is > that each time a new subdirectory is added, eclipse generates a "sub- > makefile" (called subdir.mk) - which must be added to sourcecontrol > manually for the project to compile on the build machine. People > fail to do this and the build is continuously failing. > Any ideas? What kind of ideas are you looking for? Ways to run the build without the sub-makefiles, or ways to automatically add them to source control when eclipse generates them? Matt Wynne http://blog.mattwynne.net http://www.songkick.com _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: C++ eclipse makefile issuesThanks for the idea; however ideally I don't want users to worry about the subdir.mk's at all. (Having the Debug/Release directory in source control is in itself not very esthetic.) I was thinking along the lines of having eclipse create one big makefile with all the subdir.mk's expanded inside it, but I don't know how to do this.
On Thu, Feb 12, 2009 at 12:17 PM, Bil Kleb <Bil.Kleb@...> wrote: Jonathan Naor wrote: _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: C++ eclipse makefile issuesIf possible I'd rather not have the sub-makefiles in source control at all. Is there a way to automatically expand the sub-makefiles when they are included in the "master" makefile? Then I would only need to have this file in svn to build the project.
On Thu, Feb 12, 2009 at 12:52 PM, Matt Wynne <matt@...> wrote:
_______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: C++ eclipse makefile issuesOn Wed, Feb 11, 2009 at 11:26 PM, Jonathan Naor
<jonathan.naor@...> wrote: > Hi, > > Might be a bit off-topic, but just in case someone has already encountered a > similar problem: > We have a C++ project set to build continuously via cruisecontrol.rb. The > IDE used for development is eclipse, which automatically generates a > makefile for the project. The problem is that each time a new subdirectory > is added, eclipse generates a "sub-makefile" (called subdir.mk) - which must > be added to sourcecontrol manually for the project to compile on the build > machine. People fail to do this and the build is continuously failing. > Any ideas? Add logic to the build to add the directory to source control. _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
| Free embeddable forum powered by Nabble | Forum Help |