简体   繁体   English

Makefile.am 中的省略号 (...) 有什么用?

[英]What are ellipses (...) used for in a Makefile.am?

I made a library using libtool a while back.不久前我使用 libtool 创建了一个库。 In my example code, the Makefile.am contains ellipses (...).在我的示例代码中,Makefile.am 包含省略号 (...)。 I don't remember what purpose they serve, and googling around I haven't found an answer.我不记得他们的目的是什么,谷歌搜索我没有找到答案。 What are they for?它们是为了什么?

ignitech_example_SOURCES = ignitech.cpp …
ignitech_example_dyn_SOURCES = ignitech.cpp …
ignitech_example_LDADD = ../libignitech.la
ignitech_example_dyn_LDADD = -lignitech
example:
        $(MAKE) $(AM_MAKEFLAGS) -C .. all
        $(MAKE) $(AM_MAKEFLAGS) ignitech_example
        $(MAKE) $(AM_MAKEFLAGS) ignitech_example_dyn

Elipses do not have any special significance to Automake. Elipses 对 Automake 没有任何特殊意义。 If you put an elipsis in a list of file names, as in the example, then it will be interpreted as a file name.如果将省略号放在文件名列表中,如示例中所示,那么它将被解释为文件名。 Automake especially attributes no special significance to the Unicode single-character elipsis, such as appears in your example. Automake特别认为 Unicode 单字符省略号没有特殊意义,例如出现在您的示例中。

Overall, I'm inclined to guess that the Makefile.am fragment presented in the question in fact is not drawn from a working Automake input file at all, but instead copied verbatim from an example in a book or tutorial, where the elipses are not meant to be taken as literal file content.总的来说,我倾向于猜测问题中出现的Makefile.am片段实际上根本不是从工作的 Automake 输入文件中提取的,而是从一本书或教程中的示例中逐字复制而来,其中省略号不是旨在被视为文字文件内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM