autoconf项目的哪些文件放入.gitignore中



我们在git管理的项目中包含了ctemplate库,它基于GNU Autoconf。

我想把所有由Autoconf生成的东西都放到。gitignore文件中,以避免如果有人不小心提交了他的平台特定生成的文件时发生冲突。

有人能告诉我如何找出autoconf为所有平台(Mac, Ubuntu, CentOS等)生成/修改的完整文件列表吗?

以下是我在各种.gitignore(在Debian测试中)中的内容:

共享库: (libtool)

/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/
/config.*
/configure
/depcomp
/install-sh
/libtool
/ltmain.sh
/m4/
/missing
/stamp-h?
.deps/
.dirstamp
.libs/
*.l[ao]
*~

可执行文件:

/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/
/config.*
/configure
/m4/
/stamp-h?
.deps/
.dirstamp
*.o
*~

您可能想要稍微调整一下,但这是它的大部分。make dist-clean之后是commit, rebuild,最后git status可能会显示新文件,这取决于您的构建生成的内容。

最新更新