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.

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?

> 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.