Bug 428525

Summary: broken autotools in fedora eclipse cdt
Product: [Fedora] Fedora Reporter: Maciej Sawicki <viroos.pl>
Component: eclipse-cdtAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-14 16:56:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maciej Sawicki 2008-01-12 20:55:15 UTC
when trying to compile simple "hello world" c++ program using "File/New GNU C++ Autotools
Project"

i
getting fallowing error: "
**** Clean-only build of configuration Build (GNU)
for project
okno_zadania
****

make
-k clean 
make: *** No rule to make target `clean'.
Buildfile
generation
error
occurred..
Not
possible to generate Makefile and no existing Makefile
found
Build
stopped.."

my
project
contains one source folder ("zadania") and one cpp
unit (zad1.cpp)
that loks like
this:
"

#include <iostream>

int main (){
	std::cout<<"foo";
	return
0;
}

"

Comment 1 Jeff Johnston 2008-01-14 16:56:27 UTC
The error is correct.  You have created the wrong type of project.   You should
have created a simple Managed Make project (no autotools).  You do not have the
files in place for an Autotools project.  An Autotools project is meant to be
used for an existing project that has Autotools files in place (e.g. if you had
checked out the gdb project).  The error is occurring because you do not have a
Makefile in place nor do you have a way of generating a Makefile using
Autotools.  A regular Managed Make project would have created one for you
automatically which is what I believe you meant to do.

For an Autotools project, you are required to provide a configure.in or
configure.ac file that can be input to the autoconf command.  This creates the
configure file used to configure your project.  You also require a Makefile.in
which should be generated from a Makefile.am file using the automake command. 
There are other files, but if you specify --add-missing, they are created for you.