Makefile (4c9f4865f4604744d4f1a43db22ac6ec9dc8e587) | Makefile (e7fb6465d4c8e767e39cbee72464e0060ab3d20c) |
---|---|
1# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 2# Most of this file is copied from tools/lib/traceevent/Makefile 3 4RM ?= rm 5srctree = $(abs_srctree) 6 7LIBBPF_VERSION := $(shell \ 8 grep -oE '^LIBBPF_([0-9.]+)' libbpf.map | \ --- 201 unchanged lines hidden (view full) --- 210 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$1'; \ 211 fi 212endef 213 214define do_install 215 if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ 216 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ 217 fi; \ | 1# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 2# Most of this file is copied from tools/lib/traceevent/Makefile 3 4RM ?= rm 5srctree = $(abs_srctree) 6 7LIBBPF_VERSION := $(shell \ 8 grep -oE '^LIBBPF_([0-9.]+)' libbpf.map | \ --- 201 unchanged lines hidden (view full) --- 210 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$1'; \ 211 fi 212endef 213 214define do_install 215 if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ 216 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ 217 fi; \ |
218 $(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR_SQ)$2' | 218 $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2' |
219endef 220 221install_lib: all_cmd 222 $(call QUIET_INSTALL, $(LIB_TARGET)) \ 223 $(call do_install_mkdir,$(libdir_SQ)); \ 224 cp -fpR $(LIB_FILE) $(DESTDIR)$(libdir_SQ) 225 226install_headers: $(BPF_HELPER_DEFS) --- 43 unchanged lines hidden --- | 219endef 220 221install_lib: all_cmd 222 $(call QUIET_INSTALL, $(LIB_TARGET)) \ 223 $(call do_install_mkdir,$(libdir_SQ)); \ 224 cp -fpR $(LIB_FILE) $(DESTDIR)$(libdir_SQ) 225 226install_headers: $(BPF_HELPER_DEFS) --- 43 unchanged lines hidden --- |