diff options
author | Michal Marek <mmarek@suse.cz> | 2015-01-08 08:45:50 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-01-08 08:45:50 -0500 |
commit | 976591810f8aa2f57c647c6485112b7c62f832ae (patch) | |
tree | dbf8f80edc33779d895bdd6f48ee183bf620aece /Documentation/kbuild/makefiles.txt | |
parent | d9f711db8348233a2958cf91a19ca78677f677e0 (diff) |
kbuild: Update documentation of clean-files and clean-dirs
Commit a16c5f99 (kbuild: Fix removal of the debian/ directory) slightly
changed the processing of the clean-files and clean-dirs variables.
Also, use a current real-world example of clean-files usage.
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Documentation/kbuild/makefiles.txt')
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index a311db829e9b..873db4777771 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -751,12 +751,12 @@ generated by kbuild are deleted all over the kernel src tree when | |||
751 | Additional files can be specified in kbuild makefiles by use of $(clean-files). | 751 | Additional files can be specified in kbuild makefiles by use of $(clean-files). |
752 | 752 | ||
753 | Example: | 753 | Example: |
754 | #drivers/pci/Makefile | 754 | #lib/Makefile |
755 | clean-files := devlist.h classlist.h | 755 | clean-files := crc32table.h |
756 | 756 | ||
757 | When executing "make clean", the two files "devlist.h classlist.h" will be | 757 | When executing "make clean", the two files "devlist.h classlist.h" will be |
758 | deleted. Kbuild will assume files to be in the same relative directory as the | 758 | deleted. Kbuild will assume files to be in the same relative directory as the |
759 | Makefile except if an absolute path is specified (path starting with '/'). | 759 | Makefile, except if prefixed with $(objtree). |
760 | 760 | ||
761 | To delete a directory hierarchy use: | 761 | To delete a directory hierarchy use: |
762 | 762 | ||
@@ -764,9 +764,8 @@ To delete a directory hierarchy use: | |||
764 | #scripts/package/Makefile | 764 | #scripts/package/Makefile |
765 | clean-dirs := $(objtree)/debian/ | 765 | clean-dirs := $(objtree)/debian/ |
766 | 766 | ||
767 | This will delete the directory debian, including all subdirectories. | 767 | This will delete the directory debian in the toplevel directory, including all |
768 | Kbuild will assume the directories to be in the same relative path as the | 768 | subdirectories. |
769 | Makefile if no absolute path is specified (path does not start with '/'). | ||
770 | 769 | ||
771 | To exclude certain files from make clean, use the $(no-clean-files) variable. | 770 | To exclude certain files from make clean, use the $(no-clean-files) variable. |
772 | This is only a special case used in the top level Kbuild file: | 771 | This is only a special case used in the top level Kbuild file: |