[英]Add .c files in a package using Autotools without compiling them
I have some .c files that get included in some unit tests (like #include "foo.c" ). 我有一些.c文件包含在某些单元测试中(例如#include“ foo.c” )。 I don't want the build system to try to build those.
我不希望构建系统尝试构建那些。 It will fail.
它会失败。 I just want to call 'make dist' and get those .c files included in the generated package.
我只想调用'make dist'并获取生成包中包含的.c文件。
How do I do that? 我怎么做? I've tried noinst_ prefix and _DATA suffix without effect.
我尝试过noinst_前缀和_DATA后缀无效。
Also, a link to the specific documentation would be great. 同样,指向特定文档的链接也很棒。 I'm running in circles reading GNU's documentation on this.
我正在圈子中阅读有关GNU文档的信息。 It's huge (as it should be)!
它很大(应该是)!
你有没有尝试过:
EXTRA_DIST = foo.c
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.