DH_AUTO_CLEAN(1)
β¨ DH_AUTO_CLEAN(1) β¨
okay so bestie, we're doing dh_auto_clean(1) today β it's one of the debhelper girlies and honestly? she's the one who cleans up after the party π§Ήβ¨
π NAME π
dh_auto_clean β automatically cleans up after a build π
πΈ SYNOPSIS πΈ
dh_auto_clean [build system options] [debhelper options] [-- params]
π¦ DESCRIPTION π¦
so dh_auto_clean is a debhelper program, and her whole job is: she tries to automatically clean up after a package build. no cap. she does this by running the appropriate command for whatever build system she detects the package is using β she literally vibe checks your package and goes "oh you're that kind of project, say less" π
for example, if there's a Makefile and it contains a distclean, realclean, or clean target, then this gets done by running make (or MAKE, if the environment variable is set π). and if there's a setup.py or Build.PL, it gets run to clean the package. slay.
she's intended to work for about 90% of packages. iconic honestly. BUT β and this is the important part, listen β if it doesn't work, or if she tries to use the wrong clean target, you're encouraged to skip using dh_auto_clean at all, and just run make clean manually. fr fr. no shame in it. if the shoe doesn't fit, don't wear it π«Ά
π OPTIONS π
see "BUILD SYSTEM OPTIONS" in debhelper(7) for a list of common build system selection and control options π
--params β pass params to the program that gets run, and they go in after the parameters thatdh_auto_cleanusually passes. so like, your extra stuff goes at the end of the line, not the front. periodt. β¨
π SEE ALSO π
this program is a part of debhelper. one big happy family π«Ά
π AUTHOR π
Joey Hess <joeyh@debian.org> β yes the legend herself wrote it, we stan π
and that's the whole page, bestie!! this was Debhelper version 14.5ubuntu1, dated 2026-09-21 β go forth and clean up after yourself, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: debhelper 14.5ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms