Logical is that `make clean` cleans everything done from build, not only parts. Leaving the documentation unclean requires additional step when building for example Debian packages: $ dpkg-buildpackage -us -uc ... dpkg-source: info: local changes detected, the modified files are: Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx> --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 544684c1c37c..4650d15d64e9 100644 --- a/Makefile +++ b/Makefile @@ -375,6 +375,7 @@ samples: libtracefs.a force $(Q)$(call descend,$(src)/samples,all) clean: + $(Q)$(call descend_clean,Documentation) $(Q)$(call descend_clean,utest) $(Q)$(call descend_clean,src) $(Q)$(call descend_clean,samples) -- 2.32.0