[Tuxnes-devel] "make distcheck" doesn't work
Brought to you by:
tmmm
From: Jason D. S. <jd...@us...> - 2004-03-15 19:22:55
|
"make dist" makes a tarball. ("make distcheck" makes the tarball and then compiles it to test it.) But the tarball won't compile because not all the sources are included in it. (Header files have to be included in the list. Although they're not compiled, there's no other way for automake to know to include them in the distribution.) This patch changes tuxnes_SOURCES to include all the sources for tuxnes. This allows "make dist" to generate a tarball that includes all the files. Yay! (I got the list of sources by removing all *.[ch] files, then doing a cvs update, then doing "ls *.[ch]". I removed comptbl.c from this list, and added emulator_x86_asm.S back in. The list is sorted alphabetically and formated nicely.) This doesn't fix everything, however. There are still problems with emulator_x86_asm.S: - When compiling it gcc doesn't get all the normal CFLAGS. This means that there is no -I$(top_builddir) parameter so when the builddir isn't the same as the sourcedir inclusion of config.h will fail. (If that didn't make any sense, try "make distcheck" and watch it fail. Or try "make distclean && mkdir build && cd build && ../configure && make" in the top-level source directory. This isn't ever used by a typical user, but is often used to build binary packages because the developer can build multiple packages out of the same source directory.) - emulator_x86_asm.S is always compiled. I imagine this means compilation will fail on any non-x86 system. These are unrelated to "make dist", of course. jason |