Makefile strangeness [message #869800] |
Fri, 04 May 2012 06:55  |
Eclipse User |
|
|
|
I have a pretty simple project with 1 cpp that includes... 1 include (.h).
Using Automatic Makefile generation, on Linux. Release is set.
Basically the CPP includes the "include.h", nothing special.
When I modify the include.h only... (CPP is not touched)
- ... and click ^b, Eclipse does 'make all' (see in console) and generates the new bin. Normal.
- However if I cd to the Release path and do manually 'make all', 'make' does nothing, as it does not see the .h modification / dependency, and decides not to recompile the .cpp
I checked the generated makefile, there is no include.h dependency.
Two questions:
- why does the ^b in Eclipse works and the CPP is recompiled (while it does 'make all')?
- how can I add the local include.h dependency while keeping the automatic makefile generation?
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.30456 seconds