0

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

ivarec
  • 2,542
  • 2
  • 34
  • 57
  • It must be pointed out that `#include "foo.c"` is a bad idea. `*.c` files should be compiled, `*.h` files should be included. Never include a `*.c` file!! – William Pursell Jan 16 '13 at 17:20

1 Answers1

2

Have you tried:

EXTRA_DIST = foo.c
Jack Kelly
  • 18,264
  • 2
  • 56
  • 81
  • Works. Also, it could be dist_foo_DATA. Don't know why I thought it didn't work before. I just have to define some foodir guy :) – ivarec Jan 16 '13 at 20:40
  • @haole: That will install `foo.c` into `$(foodir)`, which is fine if that's what you want. – Jack Kelly Jan 17 '13 at 21:33