Makefile.clean (42640b134bf44e3bac34808e8c39660c7ae42855) | Makefile.clean (faabed295cccc2aba2b67f2e7b309f2892d55004) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# ========================================================================== 3# Cleaning up 4# ========================================================================== 5 6src := $(obj) 7 8PHONY := __clean --- 13 unchanged lines hidden (view full) --- 22 23# Add subdir path 24 25subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) 26 27# build a list of files to remove, usually relative to the current 28# directory 29 | 1# SPDX-License-Identifier: GPL-2.0 2# ========================================================================== 3# Cleaning up 4# ========================================================================== 5 6src := $(obj) 7 8PHONY := __clean --- 13 unchanged lines hidden (view full) --- 22 23# Add subdir path 24 25subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) 26 27# build a list of files to remove, usually relative to the current 28# directory 29 |
30__clean-files := $(extra-y) $(extra-m) $(extra-) \ 31 $(always) $(always-y) $(always-m) $(always-) $(targets) $(clean-files) \ 32 $(hostprogs) $(hostprogs-y) $(hostprogs-m) $(hostprogs-) $(userprogs) | 30__clean-files := \ 31 $(clean-files) $(targets) $(hostprogs) $(userprogs) \ 32 $(extra-y) $(extra-m) $(extra-) \ 33 $(always-y) $(always-m) $(always-) \ 34 $(hostprogs-always-y) $(hostprogs-always-m) $(hostprogs-always-) \ 35 $(userprogs-always-y) $(userprogs-always-m) $(userprogs-always-) |
33 | 36 |
37# deprecated 38__clean-files += $(always) $(hostprogs-y) $(hostprogs-m) $(hostprogs-) 39 |
|
34__clean-files := $(filter-out $(no-clean-files), $(__clean-files)) 35 36# clean-files is given relative to the current directory, unless it 37# starts with $(objtree)/ (which means "./", so do not add "./" unless 38# you want to delete a file from the toplevel object directory). 39 40__clean-files := $(wildcard \ 41 $(addprefix $(obj)/, $(filter-out $(objtree)/%, $(__clean-files))) \ --- 26 unchanged lines hidden --- | 40__clean-files := $(filter-out $(no-clean-files), $(__clean-files)) 41 42# clean-files is given relative to the current directory, unless it 43# starts with $(objtree)/ (which means "./", so do not add "./" unless 44# you want to delete a file from the toplevel object directory). 45 46__clean-files := $(wildcard \ 47 $(addprefix $(obj)/, $(filter-out $(objtree)/%, $(__clean-files))) \ --- 26 unchanged lines hidden --- |