1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
5 # get all variables starting with "INSTALL-y-", and extract the
6 # installation dir and path
8 INSTALL-y := $(filter INSTALL-y-%,$(.VARIABLES))
9 INSTALL-n := $(filter INSTALL-n-%,$(.VARIABLES))
10 INSTALL- := $(filter INSTALL--%,$(.VARIABLES))
11 INSTALL-DIRS-y := $(patsubst INSTALL-y-%,%,$(INSTALL-y))
12 INSTALL-FILES-y := $(foreach i,$(INSTALL-DIRS-y),\
13 $(addprefix $(RTE_OUTPUT)/$(i)/,$(notdir $(INSTALL-y-$(i)))))
14 INSTALL-FILES-all := $(foreach i,$(INSTALL-DIRS-y) $(INSTALL-DIRS-n) $(INSTALL-DIRS-),\
15 $(addprefix $(RTE_OUTPUT)/$(i)/,$(notdir $(INSTALL-y-$(i)))))
17 _INSTALL_TARGETS := _preinstall _install _postinstall
20 # get all variables starting with "SYMLINK-y-", and extract the
21 # installation dir and path
23 SYMLINK-y := $(filter SYMLINK-y-%,$(.VARIABLES))
24 SYMLINK-n := $(filter SYMLINK-n-%,$(.VARIABLES))
25 SYMLINK- := $(filter SYMLINK--%,$(.VARIABLES))
26 SYMLINK-DIRS-y := $(patsubst SYMLINK-y-%,%,$(SYMLINK-y))
27 SYMLINK-FILES-y := $(foreach i,$(SYMLINK-DIRS-y),\
28 $(addprefix $(RTE_OUTPUT)/$(i)/,$(notdir $(SYMLINK-y-$(i)))))
29 SYMLINK-FILES-all := $(foreach i,$(SYMLINK-DIRS-y) $(SYMLINK-DIRS-n) $(SYMLINK-DIRS-),\
30 $(addprefix $(RTE_OUTPUT)/$(i)/,$(notdir $(SYMLINK-y-$(i)))))
32 _SYMLINK_TARGETS := _presymlink _symlink _postsymlink