summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-21 16:02:02 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-25 07:39:21 +0900
commit46a63d4b0d79cf9e8afa3879acf9f6cf74a84a08 (patch)
treed5d4b811eb8f91e1cff4a7a9c41847bada8da8da /Makefile
parentcdfca821571dfad27434b71cb43e0654667c0fd1 (diff)
downloadlinux-46a63d4b0d79cf9e8afa3879acf9f6cf74a84a08.tar.gz
kbuild: pkg: clean up package files/dirs from the top Makefile
I am not a big fan of the $(objtree)/ hack for clean-files/clean-dirs.

These are created in the top of $(objtree), so let's clean them up
from the top Makefile.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index db2ddd53d557..69cb3ec35d3c 100644
--- a/Makefile
+++ b/Makefile
@@ -1386,12 +1386,14 @@ CLEAN_FILES += modules.builtin.modinfo
 
 # Directories & files removed with 'make mrproper'
 MRPROPER_DIRS  += include/config include/generated          \
-		  arch/$(SRCARCH)/include/generated .tmp_objdiff
+		  arch/$(SRCARCH)/include/generated .tmp_objdiff \
+		  debian/ snap/ tar-install/
 MRPROPER_FILES += .config .config.old .version \
 		  Module.symvers \
 		  signing_key.pem signing_key.priv signing_key.x509	\
 		  x509.genkey extra_certificates signing_key.x509.keyid	\
-		  signing_key.x509.signer vmlinux-gdb.py
+		  signing_key.x509.signer vmlinux-gdb.py \
+		  *.spec
 
 # Directories & files removed with 'make distclean'
 DISTCLEAN_DIRS  +=