On Wed, 2008-02-13 at 12:20 -0800, Jeff Johnston wrote:
Daniel B. Thurman wrote:
> I am testing Eclipse on F8, and I have checkout HelloWorld
> from my SVN repository and into my workspace, choosing
> GNU AutoBuild but apparently it is unable to auto-build.
> The error I have reported is:
> **** Clean-only build of configuration Build (GNU) for project
> HelloWorld ****
> make -k distclean
> make: *** No rule to make target `distclean'.
> Buildfile generation error occurred..
> Not possible to generate Makefile and no existing Makefile found
> Build stopped..
> So what is the problem
A GNU Autotools project expects an existing project to have a
script or autogen.sh that is used to configure and ultimately
the Makefile. If you do not have these files and don't plan on
them, you should use either the regular Managed Make project which
create a Makefile for you, or the Std Make project which expects you
have a Makefile.
From what I can tell, when I checked out HelloWorld from SVN
I had chosen the Project Wizard, the Wizard gave me two choices.
(1) C Project or (2) GNU C Autotools Project. I chosed (2). Then
"HelloWorld" as the Workspace name, then the configuration Project
Type says: "GNU Autotools" and Build(GNU) is checked, then left the
Additional Settings alone and clicked 'Finish".
That is now I ended up with the above reported error.
I assume this is what you mean by 'Managed Make"?
As far as I can tell, there is no 'Managed Make" that I can see...
Regarding the clean behavior, the Autotools project default is to do
make distclean which is a standard target in a generated Makefile for
autotools project. If one goes to Project ->Properties->C/C++
Build->Settings->Autotools tab you will find settings for the clean
behavior. You can change this to make clean or have the build
simply deleted. The distclean target deletes all files created by
build and leaves others alone. This is useful when one wants to
configure/build directly in the source directory.
I tried both clean and disclean - same error except that the 'disclean'
rule does not appear in 'clean'
The error message was given because it could not find a Makefile in
project and there were no configuration files to generate one from.
Yes, that is correct - there is no Makefile that is generated or
existing. I am
trying to get the 'Managed Make' to work - but cannot tell how to do
Thanks for responding,