Lines Matching defs:clean
269 clean-targets := %clean mrproper cleandocs
270 no-dot-config-targets := $(clean-targets) \
318 # For "make -j clean all", "make -j mrproper defconfig all", etc.
319 ifneq ($(filter $(clean-targets),$(MAKECMDGOALS)),)
320 ifneq ($(filter-out $(clean-targets),$(MAKECMDGOALS)),)
551 # Before starting out-of-tree build, make sure the source tree is clean.
563 echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(origin ARCH)), ARCH=$(ARCH)) mrproper'"; \
603 # Build targets only - this includes vmlinux, arch specific targets, clean
1011 # from the clean source tree, the GCC plugins do not exist at this point.
1139 # in output directory, skip its clean in that case
1142 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1172 clean-dirs := $(vmlinux-alldirs)
1501 # make clean Delete most generated files
1506 # Directories & files removed with 'make clean'
1525 # clean - Delete most, but leave enough to build external modules
1527 clean: rm-files := $(CLEAN_FILES)
1532 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
1533 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1535 clean: archclean vmlinuxclean resolve_btfids_clean
1544 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1546 mrproper: clean $(mrproper-dirs)
1583 @echo ' clean - Remove most generated files but keep the config and'
1633 @echo ' kselftest-clean - Remove all generated kselftest files'
1732 # make M=dir clean Delete all automatically generated files
1750 clean-dirs := $(KBUILD_EXTMOD)
1751 clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers $(KBUILD_EXTMOD)/modules.nsdeps \
1761 @echo ' clean - remove generated files in module directory only'
1854 clean-dirs := $(addprefix _clean_, $(clean-dirs))
1855 PHONY += $(clean-dirs) clean
1856 $(clean-dirs):
1857 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1859 clean: $(clean-dirs)