I'm working on a project that has a custom INSTALL file. Running automake --add-missing (or more precisely, autoreconf -i) will generate the GNU default INSTALL file, and overwrite our file with it.
How can I prevent this behavior? I want it to either not generate the GNU INSTALL file at all, or alternatively, create it with a different name.
Also, I don't want to disable any other files that automake might generate.
Edit 1: From the automake manual:
If the
--add-missingoption is given,automakewill add a generic version of theINSTALLfile as well as theCOPYINGfile containing the text of the current version of the GNU General Public License […]. However, an existingCOPYINGfile will never be overwritten byautomake.
It says that an existing COPYING file will not be overwritten, but doesn't say anything about the INSTALL file, so it seems like it will be unconditionally overwritten.
Edit 2: As requested, here are my configure.ac and Makefile.am, and also autogen.sh that we run to autoreconf the project:
configure.ac:
AC_INIT([program name], [version number], [bug report], [short name], [url])
AC_CONFIG_SRCDIR([Main/Source/main.cpp])
AM_PROG_AS
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_CXX
CFLAGS="$CFLAGS $SDL_CFLAGS "
LIBS="$LIBS $SDL_LIBS"
CPPFLAGS="$SDL_CFLAGS -DLINUX
-DLOCAL_STATE_DIR=\\\"$sharedstatedir/<program name>\\\"
-DDATADIR=\\\"$datadir\\\" -DUSE_SDL -DGCC"
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_CONFIG_FILES(<list of Makefiles in subdirs>)
AC_OUTPUT
Makefile.am:
SUBDIRS = FooLib Main Bar Baz
EXTRA_DIST = LICENSING <and a bunch of unrelated files>
autogen.sh:
autoreconf -f -i
configure.acandMakefile.in, please? Edit your question to include them, do not add them in a comment or a separate paste. Also add any other custom scripts you might be using. See gnu.org/software/automake/manual/html_node/Gnits.html#Gnits . You've probably have--add-missingsomewhere. If you take that out, the INSTALL and COPYING files won't be created. Personally I don't think that is an especially useful option.-ifromautoreconfprevents it from installing all those files.-ifor other things, but you can confirm that yourself.-igives an error:required file './compile' not found:'automake --add-missing' can install 'compile'I guess that's why I was using it in the first place.