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

十年热恋 提交于 2019-11-27 09:29:20

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.

Thanks to Alex (see answer) i went further in my search.

What i found is that it is recorded in TODO.private of make project for 15 years ....

Using git://git.savannah.gnu.org/make.git you can see history of TODO.private content :

 6) Right now the .PRECIOUS, .INTERMEDIATE, and .SECONDARY
    pseudo-targets have different capabilities.  For example, .PRECIOUS
    can take a "%", the others can't.  Etc.  These should all work the
    same, insofar as that makes sense.

These should all work the same, insofar as that makes sense. but was not coded.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!