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? Thanks, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20090212/97ec59f5/attachment.html>
Jonathan 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
On 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
Thanks 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 at nasa.gov> wrote:> Jonathan 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20090212/172d1cae/attachment.html>
If 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 at mattwynne.net> wrote:> > On 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20090212/33467a68/attachment.html>
On Wed, Feb 11, 2009 at 11:26 PM, Jonathan Naor <jonathan.naor at mail.huji.ac.il> 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.