| DH_CLEAN(1) | Debhelper | DH_CLEAN(1) |
名前
dh_clean パッケージビルドディレクトリを消去する
書式
dh_clean [debhelper オプション] [-k] [-d] [-Xitem] [path ...]
説明
dh_clean is a debhelper program that is responsible for cleaning up. It should be the last step of the clean target and other debhelper commands generally assume that dh_clean will clean up after them.
It removes the package build directories, and removes some other files including debian/files, and any detritus left behind by other debhelper commands. It also removes common files that should not appear in a Debian diff:
#*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
このコマンドはビルドが完了後、掃除をするために "make clean" を実行しません。"make clean" を実行するような事がしたければ、dh_auto_clean(1) を利用してください。
ファイル
- debian/clean
- 消去されるパスの一覧を出力できます。
このファイル内で記載されているディレクトリは最後がスラッシュで終わる必要があります。これらのディレクトリ内の内容は同様に削除されます。
Supports substitution variables in compat 13 and later as documented in debhelper(7).
オプション
- -k, --keep
- これは廃止されています。代わりに dh_prep(1) を利用してください。
The option is removed in compat 12.
- -d, --dirs-only
- パッケージビルドディレクトリを削除するだけで、他のファイルには一切手をつけません。
- -Xitem--exclude=item
- 通常は消されるはずのファイルであっても、item をファイル名の一部として含むもの全部を消去候補から除外します。本オプションを何度も指定することで、除外候補を複数指定することが可能です。
- path ...
- これらの path も消去します。
Note that directories passed as arguments must end with a trailing slash. Any content in these directories will be removed as well.
参照
debhelper(7)
このプログラムは debhelper の一部です。
作者
Joey Hess <[email protected]>
| 2023-01-02 | 13.11.4 |