Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Creating new file association for make(Extending Gnu make in Eclipse)
icon5.gif  Creating new file association for make [message #777529] Tue, 10 January 2012 11:32 Go to next message
K. Scott Piel is currently offline K. Scott Piel
Messages: 2
Registered: January 2012
Junior Member
I've spent a few hours searching for an answer to this and am, apparently, an uber failure. Either my search terms suck or I'm just being myopic. I dunno. I suspect (hope) this is something very simple that I'm just not seeing and maybe someone can get me pointed in the right direction?

In a nutshell, we have a custom application we use that takes a formatted plain text input file (with a '.enum' file extension) and generates a formatted C++ header file from it (with a '.h' file extension). Simple enough.

What I want to do is to create a file association in my generated make files so that when we build our project, the Gnu make will use the input file to re-generate the output header file for us any time the input file changes.

Put another way, I can't figure out how to have the Gnu Auto Make add the rule we need to the makefiles it generates for us out of Eclipse...

%.enum: %.h
    genEnum i=$<


Any assist that could be offered would be most appreciated. I have no doubt I'm just being stupid and overlooking the obvious. I apologize for my ignorance on this.
Re: Creating new file association for make [message #780359 is a reply to message #777529] Tue, 17 January 2012 11:57 Go to previous messageGo to next message
K. Scott Piel is currently offline K. Scott Piel
Messages: 2
Registered: January 2012
Junior Member
Shameless bump...

Over 700 reads with no reply makes me feel less dumb for having asked the question, but I'm still curious as to whether or not there may be an answer floating about out there or at least a place to go investigate for a solution?

Anyone?

Bueller? Bueller?
Re: Creating new file association for make [message #780476 is a reply to message #780359] Wed, 18 January 2012 03:30 Go to previous messageGo to next message
Hagen
Messages: 90
Registered: April 2010
Member
On 1/17/2012 5:57 PM, K. Scott Piel wrote:
> Anyone?


http://catb.org/esr/faqs/smart-questions.html

> If you can't get an answer, please don't take it personally that we
> don't feel we can help you. Sometimes the members of the asked group
> may simply not know the answer. No response is not the same as being
> ignored, though admittedly it's hard to spot the difference from
> outside.
Re: Creating new file association for make [message #897408 is a reply to message #780359] Mon, 23 July 2012 23:30 Go to previous message
Charles Tubbs is currently offline Charles Tubbs
Messages: 35
Registered: March 2012
Member
Go to Window > Preferences > C/C++ > File Types you will see a list of file types that you can add to.
Previous Topic:Eclipse cdt debugging an executable within a shell script
Next Topic:CDT 8.1 Indexer not resolving libc symbols?
Goto Forum:
  


Current Time: Wed Jul 30 07:16:33 EDT 2014

Powered by FUDForum. Page generated in 0.02846 seconds