OSDN Git Service

libbpf: Refactor header installation portions of Makefile
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Jun 2021 00:40:24 +0000 (17:40 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 3 Jun 2021 13:50:11 +0000 (15:50 +0200)
commit232c9e8bd5ebfb43563b58f31e685fde06d9441f
treeea0baa7772cbccf39a423487ffe931d6fa0f9cc1
parent16cac0060680c11bb82c325c4fe95cb66fc8dfaf
libbpf: Refactor header installation portions of Makefile

As we gradually get more headers that have to be installed, it's quite
annoying to copy/paste long $(call) commands. So extract that logic and do
a simple $(foreach) over the list of headers.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210603004026.2698513-3-andrii@kernel.org
tools/lib/bpf/Makefile