Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Build don't work if I only change files other than ".c"
Build don't work if I only change files other than ".c" [message #160712] Tue, 20 December 2005 07:18 Go to next message
Eclipse UserFriend
Originally posted by: fabricio.dea.inpe.br

Hello,


I'm new to CDT and Eclipse (Linux), and I have two simple - and I think
basic - questions:

1) I'm using a Standard (not managed) C Make Project, and I noticed that
when I try to build, the make command only runs if there is a ".c" file
changed. If I change only a header or the makefile itself, the build
command don't call "make". Is it normal?

2) How to do a rebuild (clean + build)? In Preferences there is a field
called "rebuild", but there's no menu item for this.


Thank you in advance,


Fabrício.
Re: Build don't work if I only change files other than ".c" [message #160747 is a reply to message #160712] Tue, 20 December 2005 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: berend.chalmers.se

Hi,

In a standard make, you are responsible for the Makefile, which means
that you should put in the correct dependencies - on which header files
the C files depend.

Berend.
>
>
> I'm new to CDT and Eclipse (Linux), and I have two simple - and I think
> basic - questions:
>
> 1) I'm using a Standard (not managed) C Make Project, and I noticed that
> when I try to build, the make command only runs if there is a ".c" file
> changed. If I change only a header or the makefile itself, the build
> command don't call "make". Is it normal?
>
> 2) How to do a rebuild (clean + build)? In Preferences there is a field
> called "rebuild", but there's no menu item for this.
>
>
> Thank you in advance,
>
>
> Fabrício.
>


--
/\-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-=-\
L_@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
| Berend van Wachem |
| Multiphase Flow Group |
| Chalmers University of Technology |
| |
| Please note that my email address has changed to: |
| Berend@chalmers.se |
| |
| Please make the appropriate changes in your address |
| list. |
| |
__@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
\/______________________________________________________/
Re: Build don't work if I only change files other than ".c" [message #160772 is a reply to message #160747] Tue, 20 December 2005 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ddaoust.ca.ibm.com

I think that you missed the point of this post.

Eclipse has determined that "nothing interesting has changed" and so the
project builder (in this case the CDT builder) is NOT told to build the
project -- so make will not be called.

- Dave

Berend van Wachem wrote:
> Hi,
>
> In a standard make, you are responsible for the Makefile, which means
> that you should put in the correct dependencies - on which header files
> the C files depend.
>
> Berend.
>>
>>
>> I'm new to CDT and Eclipse (Linux), and I have two simple - and I
>> think basic - questions:
>>
>> 1) I'm using a Standard (not managed) C Make Project, and I noticed
>> that when I try to build, the make command only runs if there is a
>> ".c" file changed. If I change only a header or the makefile itself,
>> the build command don't call "make". Is it normal?
>>
>> 2) How to do a rebuild (clean + build)? In Preferences there is a
>> field called "rebuild", but there's no menu item for this.
>>
>>
>> Thank you in advance,
>>
>>
>> Fabrício.
>>
>
>
Re: Build don't work if I only change files other than ".c" [message #160776 is a reply to message #160772] Tue, 20 December 2005 15:21 Go to previous messageGo to next message
Eclipse UserFriend
No, I think he had the point of the post. The "or the makefile itself"
implies not having a lot of experience with make. I think the original
response is right... it goes back to having to be responsible for the
makefile in a non-managed make situation, which means also being
responsible for understanding the model make itself follows.

Back to the original questioner... If you change .c files, a re-compile
takes place. This is presumably because you have a
<whatever-target>: <whatever-c-files-it-is-dependent-upon>
dependency set up (or some default global settings are providing that
for you). Do you have
<whatever-specific-c-file>: <the-.h-it-depends-on>
dependency set up as well?

Now, I've been a long time *user* of makefiles, but not that much in the
development side... and I've never seen where everything is also
"dependent on" the makefile itself... though I agree it is a good idea.
--
RDS


David Daoust wrote:
> I think that you missed the point of this post.
>
> Eclipse has determined that "nothing interesting has changed" and so the
> project builder (in this case the CDT builder) is NOT told to build the
> project -- so make will not be called.
>
> - Dave
>
> Berend van Wachem wrote:
>
>> Hi,
>>
>> In a standard make, you are responsible for the Makefile, which means
>> that you should put in the correct dependencies - on which header
>> files the C files depend.
>>
>> Berend.
>>
>>>
>>>
>>> I'm new to CDT and Eclipse (Linux), and I have two simple - and I
>>> think basic - questions:
>>>
>>> 1) I'm using a Standard (not managed) C Make Project, and I noticed
>>> that when I try to build, the make command only runs if there is a
>>> ".c" file changed. If I change only a header or the makefile itself,
>>> the build command don't call "make". Is it normal?
>>>
>>> 2) How to do a rebuild (clean + build)? In Preferences there is a
>>> field called "rebuild", but there's no menu item for this.
>>>
>>>
>>> Thank you in advance,
>>>
>>>
>>> Fabrício.
>>>
>>
>>
Re: Build don't work if I only change files other than ".c" [message #160863 is a reply to message #160776] Wed, 21 December 2005 07:51 Go to previous message
Eclipse UserFriend
Originally posted by: fabricio.dea.inpe.br

Yes, Berend's right, and who missed the point here was me :)

I thought that "make" was not called by Eclipse, but after you answers I
looked again and saw that who was complaining that nothing was changed was
make.

Thank you all again, and sorry for so basic question!
Regards,


Fabrício.
Previous Topic:Error Parser
Next Topic:Eclipse/CDT Run-Configuration
Goto Forum:
  


Current Time: Sun May 11 11:19:45 EDT 2025

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

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

Back to the top