The "make dist" command can be used to generate the release tarball, but only if the Makefile.am correctly specifies EXTRA_DIST, specifies headers in foo_SOURCES, and so on.