Skip to contentSkip to conversation

perf bpf: Fixup include and examples install messages

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message May 19, 2018 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  cfc4033be77abcf5953bed2fd201100515fcb357
Gitweb:     https://git.kernel.org/tip/cfc4033be77abcf5953bed2fd201100515fcb357
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 17 May 2018 17:22:22 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Sat, 19 May 2018 06:42:50 -0300

perf bpf: Fixup include and examples install messages

Before:

INSTALL lib
install include/bpf/*.h '/home/acme/lib/include/perf/bpf'
INSTALL lib
install examples/bpf/*.c '/home/acme/lib/examples/perf/bpf'

After:

  INSTALL  lib
  INSTALL  include/bpf
  INSTALL  lib
  INSTALL  examples/bpf
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Fixes dd8e4ead6e98 ("perf bpf: Add bpf.h to be used in eBPF proggies")
Fixes 8f12a2ff00e5 ("perf bpf: Add 'examples' directories")
---
 tools/perf/Makefile.perf | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/Makefile.perf +2 -0
index c63a3971d719..ecc9fc952655 100644
@@ -770,9 +770,11 @@ endif
 ifndef NO_LIBBPF
 	$(call QUIET_INSTALL, lib) \
 		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perf_include_instdir_SQ)/bpf'
+	$(call QUIET_INSTALL, include/bpf) \
 		$(INSTALL) include/bpf/*.h '$(DESTDIR_SQ)$(perf_include_instdir_SQ)/bpf'
 	$(call QUIET_INSTALL, lib) \
 		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perf_examples_instdir_SQ)/bpf'
+	$(call QUIET_INSTALL, examples/bpf) \
 		$(INSTALL) examples/bpf/*.c '$(DESTDIR_SQ)$(perf_examples_instdir_SQ)/bpf'
 endif
 	$(call QUIET_INSTALL, perf-archive) \