IT lexicon › Programming › Dist-clean

Dist-clean

Programming På svenska → Updated: 2026-11-13

Make target that performs a thorough cleanup, removing not just compiled code but all generated files needed for building.

In Unix convention, `make clean` removes object files and binaries but leaves Makefiles and build infrastructure intact. `make dist-clean` goes further: it also removes the Makefiles themselves (often generated by Autotools) and other system-specific files, returning the directory to pristine source state. This was traditionally run before packaging a tarball for distribution — the package shouldn't include any user or system-specific build configuration.

← Back to the lexicon