"Paul D. Smith" <[EMAIL PROTECTED]>:
> This is obliquely stated in the documentation:
> 
>  `.SECONDARY'
>      The targets which `.SECONDARY' depends on are treated as
>      intermediate files, except that they are never automatically
>      deleted.  *Note Chains of Implicit Rules: Chained Rules.
> 
>      `.SECONDARY' with no prerequisites marks all file targets mentioned
>                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
>      in the makefile as secondary.
> 
> Note the second paragraph.  The targets you give aren't mentioned in the
> makefile; they're built using implicit rules.

Yes, but aren't all explicitly mentioned targets considered secondary
anyway?  If so, it seems like ".SECONDARY: " serves no purpose...

For the complex Makefiles I'm working on now, intermediate deletion
was causing deletion of object files which should not be deleted, and
I decided to just turn it off entirely.  However, without .SECONDARY
behaving as I'd like it to, I don't see how to acheive this.

> I agree with you, however, that this is a strange restriction and this
> area needs to be revisited, for all of PRECIOUS, INTERMEDIATE, and
> SECONDARY.
> 
> I'll file an enhancement request about it.

Thanks.

Seth

Reply via email to