automake: Fine-grained Distribution Control
1
1 14.2 Fine-grained Distribution Control
1 ======================================
1
1 Sometimes you need tighter control over what does _not_ go into the
1 distribution; for instance, you might have source files that are
1 generated and that you do not want to distribute. In this case Automake
1 gives fine-grained control using the ‘dist’ and ‘nodist’ prefixes. Any
1 primary or ‘_SOURCES’ variable can be prefixed with ‘dist_’ to add the
1 listed files to the distribution. Similarly, ‘nodist_’ can be used to
1 omit the files from the distribution.
1
1 As an example, here is how you would cause some data to be
1 distributed while leaving some source code out of the distribution:
1
1 dist_data_DATA = distribute-this
1 bin_PROGRAMS = foo
1 nodist_foo_SOURCES = do-not-distribute.c
1