简体   繁体   中英

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" ). 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.

How do I do that? I've tried noinst_ prefix and _DATA suffix without effect.

Also, a link to the specific documentation would be great. I'm running in circles reading GNU's documentation on this. It's huge (as it should be)!

你有没有尝试过:

EXTRA_DIST = foo.c

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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