diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-05-04 12:10:56 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-05-05 19:15:46 +0200 |
commit | 19c8d912837e45e99b2991228adfc4419ffff248 (patch) | |
tree | e81e013db42ffc4a4806d586c80cab538f37f407 /Makefile | |
parent | kbuild: refactor modname-multi by using suffix-search (diff) | |
download | linux-19c8d912837e45e99b2991228adfc4419ffff248.tar.xz linux-19c8d912837e45e99b2991228adfc4419ffff248.zip |
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 <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1546,7 +1546,7 @@ PHONY += distclean distclean: mrproper $(call cmd,rmfiles) - @find $(srctree) $(RCS_FIND_IGNORE) \ + @find . $(RCS_FIND_IGNORE) \ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ -o -name '*.bak' -o -name '#*#' -o -name '*%' \ -o -name 'core' \) \ |