diff options
author | 2019-08-25 10:31:27 +0900 | |
---|---|---|
committer | 2019-08-29 23:54:29 +0900 | |
commit | 1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1 (patch) | |
tree | e11cf667281d9d4cb4d1f0f115a3ccef077781ed /Documentation | |
parent | kbuild: check clean srctree even earlier (diff) | |
download | linux-1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1.tar.gz linux-1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1.tar.bz2 linux-1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1.zip |
kbuild: remove clean-dirs syntax
The only the difference between clean-files and clean-dirs is the -r
option passed to the 'rm' command.
You can always pass -r, and then remove the clean-dirs syntax.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kbuild/makefiles.rst | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Documentation/kbuild/makefiles.rst b/Documentation/kbuild/makefiles.rst index 9fb2de94c3e2..e9ffdffa3641 100644 --- a/Documentation/kbuild/makefiles.rst +++ b/Documentation/kbuild/makefiles.rst @@ -750,7 +750,8 @@ Files matching the patterns "*.[oas]", "*.ko", plus some additional files generated by kbuild are deleted all over the kernel src tree when "make clean" is executed. -Additional files can be specified in kbuild makefiles by use of $(clean-files). +Additional files or directories can be specified in kbuild makefiles by use of +$(clean-files). Example:: @@ -761,17 +762,8 @@ When executing "make clean", the file "crc32table.h" will be deleted. Kbuild will assume files to be in the same relative directory as the Makefile, except if prefixed with $(objtree). -To delete a directory hierarchy use: - - Example:: - - #scripts/package/Makefile - clean-dirs := $(objtree)/debian/ - -This will delete the directory debian in the toplevel directory, including all -subdirectories. - -To exclude certain files from make clean, use the $(no-clean-files) variable. +To exclude certain files or directories from make clean, use the +$(no-clean-files) variable. Usually kbuild descends down in subdirectories due to "obj-* := dir/", but in the architecture makefiles where the kbuild infrastructure |