Cédric Villemain <cedric@2ndquadrant.com> writes:
> Le lundi 17 d�cembre 2012 17:42:04, Tom Lane a �crit :
>> Well, it's behaving as documented, but what this means is we need to be
>> very wary of what contexts we can use .SECONDARY in. I'd just as soon
>> try to avoid using it at all --- my example with hand-edited gram.c
>> points out that even rather short dependency chains can have unexpected
>> misbehaviors if the intermediate files are marked .SECONDARY.
> "touch gram.c" then "make" will build again the affected files.
Yes ... but still with the modified contents of gram.c, so this doesn't
solve the problem I described. I want make to regenerate the file in
question, not (only) its derived files.
regards, tom lane