The autotools are designed to make compliance with the GPL easier (e.g. the corresponding source, which in this case might include input.txt
and scarygenerator
). However, since your project may not be bound by GPL restrictions, you can do this to not include index.txt
in the tarball:
configure.ac
AC_MSG_CHECKING([for source generation])
AS_IF([test -f index.txt], [gen_source=yes], [gen_source=no])
AC_MSG_RESULT($gen_source)
AM_CONDITIONAL([GEN_SOURCE], [test x$gen_source = xyes])
Makefile.am
bin_PROGRAMS = foo
foo_SOURCES = ... generated.cc
if GEN_SOURCE
generated.cc : index.txt
scarygenerator $< > $@
endif