Lines Matching defs:clean

262 clean-targets := %clean mrproper cleandocs
263 no-dot-config-targets := $(clean-targets) \
311 # For "make -j clean all", "make -j mrproper defconfig all", etc.
312 ifneq ($(filter $(clean-targets),$(MAKECMDGOALS)),)
313 ifneq ($(filter-out $(clean-targets),$(MAKECMDGOALS)),)
542 # Before starting out-of-tree build, make sure the source tree is clean.
554 echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(origin ARCH)), ARCH=$(ARCH)) mrproper'"; \
609 # Build targets only - this includes vmlinux, arch specific targets, clean
1004 # from the clean source tree, the GCC plugins do not exist at this point.
1131 # in output directory, skip its clean in that case
1134 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1168 clean-dirs := $(vmlinux-alldirs)
1521 # make clean Delete most generated files
1526 # Directories & files removed with 'make clean'
1545 # clean - Delete most, but leave enough to build external modules
1547 clean: rm-files := $(CLEAN_FILES)
1552 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
1553 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1555 clean: archclean vmlinuxclean resolve_btfids_clean
1564 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1566 mrproper: clean $(mrproper-dirs)
1603 @echo ' clean - Remove most generated files but keep the config and'
1653 @echo ' kselftest-clean - Remove all generated kselftest files'
1752 # make M=dir clean Delete all automatically generated files
1787 clean-dirs := $(KBUILD_EXTMOD)
1788 clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers $(KBUILD_EXTMOD)/modules.nsdeps \
1798 @echo ' clean - remove generated files in module directory only'
1866 clean-dirs := $(addprefix _clean_, $(clean-dirs))
1867 PHONY += $(clean-dirs) clean
1868 $(clean-dirs):
1869 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1871 clean: $(clean-dirs)