Why .SECONDARY does not work with patterns (%) while .PRECIOUS does?

前端 未结 2 2085
感情败类
感情败类 2020-11-30 12:38

My question is to understand better what i missed in make process and .SECONDARY purpose vs .PRECIOUS, not to get my script working, since it does work already.

I am

2条回答
  •  悲&欢浪女
    2020-11-30 13:25

    The answer to "Why .SECONDARY does not work with patterns (%) while .PRECIOUS does?" is here: the document says

    You can also list the target pattern of an implicit rule (such as ‘%.o’) as a prerequisite file of the special target .PRECIOUS

    but does not say this about .SECONDARY. But for the few explicit exceptions, none of the special targets accept patterns.

提交回复
热议问题