Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Eclipse project makefile versus cloned makefile (keeping makefiles in synch )
Eclipse project makefile versus cloned makefile [message #1816949] Tue, 12 November 2019 18:05 Go to next message
Helen Keller is currently offline Helen KellerFriend
Messages: 173
Registered: June 2019
Senior Member
This is yet another question I am not sure where to post it.
Feel free to redirect me.

I have made painful progress getting software from github to Eclipse workspace.

The issue is - the cloned software includes its OWN copy of makefile.
That makefile ties the actual application ( run) with embedded OS .

The Eclipse EGit plug-in created plain Eclipse C project for the application.
Running "Build" ( project) builds its own makefile and runs "make". Normal process.


When I make test changes in Eclipse project I have to save it and then run "make" in local repository - on my cloned copy of the original; code.
It works fine.
( nothing to do with git commit )

Then I have to do "Build" on Eclipse proejct - it compiles / links fine.
Then I can run as "local C/C++ code".
Works as expected.

Is there a way to make it work so I have to change / update ONE makefile only and have BOTH Eclipse project and repository makefiles updated?



Re: Eclipse project makefile versus cloned makefile [message #1816967 is a reply to message #1816949] Wed, 13 November 2019 07:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
It sounds like you're saying that CDT created a makefile for a C/C++ project and that this is a different makefile than the one you already have elsewhere in the file tree. It sounds like you want to somehow combine these two makefiles into a single file. All such questions about how to manage the makefile are best asked on the CDT forum because no one on this forum is likely to have such expertise...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse project makefile versus cloned makefile [message #1816996 is a reply to message #1816967] Wed, 13 November 2019 14:15 Go to previous message
Helen Keller is currently offline Helen KellerFriend
Messages: 173
Registered: June 2019
Senior Member
SOLVED
When using EGit created protect by running "Build Project" the process is smart enough NOT to create another "makefile" but uses one cloned to local Git repository.
Found by attempting to change compiler options.
Since I may need to add another options to the makefile I need to find where they are set in orignal source.

CLOSED
Previous Topic:What is an equivalent of "Build"(project) in "Git repositories " perspective ?
Next Topic:JGit: Semantics of diff hunks versus git commandline
Goto Forum:
  


Current Time: Fri Apr 26 14:05:44 GMT 2024

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

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

Back to the top