Autotools 用 .gitignore
Autotools 用の除外ルール 35 件。そのままリポジトリにコピーして使えます。
GNU ビルド システム
Autotools 用 .gitignore の完全版
# LFGitignore によって生成 - https://lfgitignore.com
# 作成日:2026-10-31 22:59:56 UTC
# 技術:Autotools
### Autotools ###
Makefile.in
/ar-lib
/mdate-sh
/py-compile
/test-driver
/ylwrap
.deps/
.dirstamp
autom4te.cache
/autoscan.log
/autoscan-*.log
/aclocal.m4
/compile
/config.cache
/config.guess
/config.h.in
/config.log
/config.status
/config.sub
/configure
/configure.scan
/depcomp
/install-sh
/missing
/stamp-h1
/libtool
/ltmain.sh
.libs/
/texinfo.tex
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
# 生成された Makefile
Makefile
Autotools のルールで除外されるもの
以下の各パターンと、.gitignore に含める理由を説明します。
一般的な
| パターン | 除外対象 |
|---|---|
Makefile.in |
一般的な |
/ar-lib |
一般的な |
/mdate-sh |
一般的な |
/py-compile |
一般的な |
/test-driver |
一般的な |
/ylwrap |
一般的な |
.deps/ |
一般的な |
.dirstamp |
一般的な |
autom4te.cache |
一般的な |
/autoscan.log |
一般的な |
/autoscan-*.log |
一般的な |
/aclocal.m4 |
一般的な |
/compile |
一般的な |
/config.cache |
一般的な |
/config.guess |
一般的な |
/config.h.in |
一般的な |
/config.log |
一般的な |
/config.status |
一般的な |
/config.sub |
一般的な |
/configure |
一般的な |
/configure.scan |
一般的な |
/depcomp |
一般的な |
/install-sh |
一般的な |
/missing |
一般的な |
/stamp-h1 |
一般的な |
/libtool |
一般的な |
/ltmain.sh |
一般的な |
.libs/ |
一般的な |
/texinfo.tex |
一般的な |
m4/libtool.m4 |
一般的な |
m4/ltoptions.m4 |
一般的な |
m4/ltsugar.m4 |
一般的な |
m4/ltversion.m4 |
一般的な |
m4/lt~obsolete.m4 |
一般的な |
Makefile |
生成された Makefile |
この Autotools 用 .gitignore の使い方
- 上の Autotools 用ルールをコピーするか、ファイルを直接ダウンロードしてください。
- Git リポジトリのルートに .gitignore という名前のファイルを作り、ルールを貼り付けます。
- 対象のファイルがすでに追跡されている場合は、git rm -r --cached . を実行して再度コミットしてください。Git の除外ルールは未追跡のファイルにのみ適用されます。
- チーム全員で同じルールを共有できるよう、.gitignore をコミットします。