Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Autotools-generated make targets not shown in 'Make targets' view
Autotools-generated make targets not shown in 'Make targets' view [message #989859] Sat, 08 December 2012 10:57 Go to next message
exquisitus Missing name is currently offline exquisitus Missing name
Messages: 5
Registered: December 2011
Junior Member
My environment:
LUbuntu 12.04, Eclipse Indigo (3.7.2), CDT 8.0.2, GNU Autotools (Package autotools-dev, version 20120210.1ubuntu).

How to reproduce:

  1. import project from git, as general project
  2. Add C/C++ nature: C project, Autotools toolchain support
  3. Run external tool: autogen.sh --prefix=$INSTALLPREFIX. This also runs configure --prefix=$INSTALLPREFIX. A Makefile is generated then and contains some targets.
  4. In the 'Make target' view open the project.


Expected result:
The 'Make target' view shows the targets in the Makefile.

Actual result:
The 'Make target' view shows no targets from the Makefile at all. In other projects the generated make targets are shown as expected.

What can I do to see and execute the make targets in my project?

[Updated on: Sat, 08 December 2012 10:59]

Report message to a moderator

Re: Autotools-generated make targets not shown in 'Make targets' view [message #990156 is a reply to message #989859] Tue, 11 December 2012 03:06 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
The Make Target View shows only the targets you added manually. It does not parse the makefile automatically. You should open your makefile (it should use the Makefile Editor by default). Then you should select your make target in the Outline View and choose "Add make Target" from the context menu.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:No rule to make target 'all'. Stop.
Next Topic:C++ Windows - cannot step after breakpoint
Goto Forum:
  


Current Time: Tue Jul 29 16:57:39 EDT 2014

Powered by FUDForum. Page generated in 0.02409 seconds