/usr/lib/Makefile.list_recursion is in undertaker 1.6.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | # -*- mode: makefile -*-#
src := $(obj)
PHONY := __list __find
ifeq ($(compiled),)
__list:
else
__find:
endif
# Read auto.conf if it exists, otherwise ignore
ifeq ($(auto_conf),)
ifeq ($(wildcard include/config/auto.conf),)
include .config
else
-include include/config/auto.conf
endif
else
include $(auto_conf)
endif
# The filename Kbuild has precedence over Makefile
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile)
# Figure out what we need to build from the various variables
# ==========================================================================
__subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y) $(lib-y)))
subdir-y += $(__subdir-y)
__subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m)))
subdir-m += $(__subdir-m)
__subdir-n := $(patsubst %/,%,$(filter %/, $(obj-n)))
subdir-n += $(__subdir-n)
__subdir- := $(patsubst %/,%,$(filter %/, $(obj-)))
subdir- += $(__subdir-)
# Subdirectories we need to descend into
subdir-ym := $(sort $(subdir-y) $(subdir-m))
include scripts/Makefile.lib
__list: $(subdir-ym)
ifneq ($(print_dirs),)
@echo $(obj)/
endif
ifneq ($(print_files),)
ifneq ($(strip $(real-objs-y)),)
@for a in $(real-objs-y); do \
echo $$a y; \
done
endif
ifneq ($(strip $(lib-y)),)
@for a in $(lib-y); do \
echo $$a l; \
done
endif
ifneq ($(strip $(real-objs-m)),)
@for a in $(real-objs-m); do \
echo $$a m; \
done
endif
endif
@:
__find: $(foreach dir,$(subdir-ym),$(if $(filter $(dir)%,$(compiled)), $(dir)))
ifneq ($(filter $(compiled),$(real-objs-y)),)
@echo $(compiled) y
endif
ifneq ($(filter $(compiled),$(real-objs-m)),)
@echo $(compiled) m
endif
ifneq ($(filter $(compiled),$(lib-y)),)
@echo $(compiled) l
endif
@:
list := $(if $(UNDERTAKER_SCRIPTS),$(UNDERTAKER_SCRIPTS)/)Makefile.list_recursion
PHONY += $(subdir-ym)
$(subdir-ym):
ifeq ($(compiled),)
$(Q)$(MAKE) -f $(list) obj=$(patsubst _list_%,%,$@)
else
$(Q)$(MAKE) -f $(list) compiled=$(compiled) obj=$(patsubst _list_%,%,$@)
endif
# Declare the contents of the .PHONY variable as phony. We keep that
# information in a variable se we can use it in if_changed and friends.
.PHONY: $(PHONY)
|