ivarec
ivarec

Reputation: 2612

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)!

Upvotes: 0

Views: 60

Answers (1)

Jack Kelly
Jack Kelly

Reputation: 18657

Have you tried:

EXTRA_DIST = foo.c

Upvotes: 2

Related Questions