diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-07-16 12:57:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-10-24 10:07:31 -0400 |
commit | 722a4984079c1237681742bfbc0cd2de99a8b17b (patch) | |
tree | 3695057cf708642623667693bf2900bc683a3a52 /tools/lib/traceevent | |
parent | b4974b4055b6dd79cb1728370eb7605ac7818cdd (diff) |
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: Jiri 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.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent')
-rw-r--r-- | tools/lib/traceevent/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 7851df1490e0..8e44bea646ee 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile | |||
@@ -240,7 +240,7 @@ define do_install | |||
240 | if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ | 240 | if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ |
241 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ | 241 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ |
242 | fi; \ | 242 | fi; \ |
243 | $(INSTALL) $1 '$(DESTDIR_SQ)$2' | 243 | $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2' |
244 | endef | 244 | endef |
245 | 245 | ||
246 | define do_install_plugins | 246 | define do_install_plugins |
@@ -264,6 +264,12 @@ install_plugins: $(PLUGINS) | |||
264 | $(call QUIET_INSTALL, trace_plugins) \ | 264 | $(call QUIET_INSTALL, trace_plugins) \ |
265 | $(call do_install_plugins, $(PLUGINS)) | 265 | $(call do_install_plugins, $(PLUGINS)) |
266 | 266 | ||
267 | install_headers: | ||
268 | $(call QUIET_INSTALL, headers) \ | ||
269 | $(call do_install,event-parse.h,$(prefix)/include/traceevent,644); \ | ||
270 | $(call do_install,event-utils.h,$(prefix)/include/traceevent,644); \ | ||
271 | $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) | ||
272 | |||
267 | install: install_lib | 273 | install: install_lib |
268 | 274 | ||
269 | clean: | 275 | clean: |