提交 722a4984 编写于 作者: J Jiri Olsa 提交者: Arnaldo Carvalho de Melo

tools lib traceevent: Add install_headers target

Adding install_headers target to install all headers
under 'include/traceevent' path, like:

  $ make DESTDIR=/tmp/krava prefix=/usr install_headers
  $ find /tmp/krava/ -type f
  /tmp/krava/usr/include/traceevent/kbuffer.h
  /tmp/krava/usr/include/traceevent/event-utils.h
  /tmp/krava/usr/include/traceevent/event-parse.h
Signed-off-by: NJiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/n/tip-if70lj3zhdc3csdqm5webjvc@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 b4974b40
...@@ -240,7 +240,7 @@ define do_install ...@@ -240,7 +240,7 @@ define do_install
if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ if [ ! -d '$(DESTDIR_SQ)$2' ]; then \
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \
fi; \ fi; \
$(INSTALL) $1 '$(DESTDIR_SQ)$2' $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
endef endef
define do_install_plugins define do_install_plugins
...@@ -264,6 +264,12 @@ install_plugins: $(PLUGINS) ...@@ -264,6 +264,12 @@ install_plugins: $(PLUGINS)
$(call QUIET_INSTALL, trace_plugins) \ $(call QUIET_INSTALL, trace_plugins) \
$(call do_install_plugins, $(PLUGINS)) $(call do_install_plugins, $(PLUGINS))
install_headers:
$(call QUIET_INSTALL, headers) \
$(call do_install,event-parse.h,$(prefix)/include/traceevent,644); \
$(call do_install,event-utils.h,$(prefix)/include/traceevent,644); \
$(call do_install,kbuffer.h,$(prefix)/include/traceevent,644)
install: install_lib install: install_lib
clean: clean:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册