Skip to content

Commit 19c8d91

Browse files
committed
kbuild: make distclean work against $(objtree) instead of $(srctree)
This reverts the old commit [1], which seems questionable to me. It claimed 'make distclean' could not remove editor backup files, but I believe KBUILD_OUTPUT or O= was set. When O= is given, Kbuild should always work against $(objtree). If O= is not given, $(objtree) and $(srctree) are the same, therefore $(srctree) is cleaned up. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=dd47df980c02eb33833b2690b033c34fba2fa80d Signed-off-by: Masahiro Yamada <[email protected]>
1 parent d445283 commit 19c8d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ PHONY += distclean
15461546

15471547
distclean: mrproper
15481548
$(call cmd,rmfiles)
1549-
@find $(srctree) $(RCS_FIND_IGNORE) \
1549+
@find . $(RCS_FIND_IGNORE) \
15501550
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
15511551
-o -name '*.bak' -o -name '#*#' -o -name '*%' \
15521552
-o -name 'core' \) \

0 commit comments

Comments
 (0)