Home
last modified time | relevance | path

Searched hist:b79c2ce3baa99beea7f8410ce3154cc23e26dbd8 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A DMakefilediff b79c2ce3baa99beea7f8410ce3154cc23e26dbd8 Thu Oct 07 14:44:27 CDT 2021 Quentin Monnet <quentin@isovalent.com> libbpf: Skip re-installing headers file if source is older than target

The "install_headers" target in libbpf's Makefile would unconditionally
export all API headers to the target directory. When those headers are
installed to compile another application, this means that make always
finds newer dependencies for the source files relying on those headers,
and deduces that the targets should be rebuilt.

Avoid that by making "install_headers" depend on the source header
files, and (re-)install them only when necessary.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211007194438.34443-2-quentin@isovalent.com