Q: what files to version control in an autoconf-ed project?
Jeremy Henty
onepoint at starurchin.org
Sun Aug 16 20:47:47 CEST 2009
Question: if your C/C++ project is built with autoconf/automake etc.,
which files should you put under version control?
Answer (or so I thought): run "make maintainer-clean" and commit
everything that is left. But that still leaves the configure and
Makefile.in files even though they are generated from other files.
Should they be under version control or not?
If I delete just the configure script then autoconf regenerates it, so
I guess it's OK not to version control configure and tell developers
to run autoconf. Contrariwise, if I delete configure *and* all the
Makefile.in files, then autoconf barfs, but autoreconf can complete
the build. So, should I refuse to version control the Makefile.in
files and tell my (currently hypothetical) developers to run
autoreconf?
AFAICT most projects don't version control the configure script and
tell developers to run autoconf (or some script that wraps autoconf).
Is that the way to go?
Regards,
Jeremy Henty
More information about the CLUG
mailing list