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