diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-06-04 12:25:13 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-06-07 10:04:53 -0400 |
commit | 1249a287b9ca730966f753d378086520b76db43f (patch) | |
tree | 9b3f8ba01a389e49196b017186da608484cad362 | |
parent | 0a2d261d02f4ea6df4a7de0448e431013cf93895 (diff) |
build: Install python modules into the trace-cmd python directory
Install ctracecmd.so and python helpers into the python directory.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -51,6 +51,8 @@ endif | |||
51 | ifeq ($(shell sh -c "python-config --includes > /dev/null 2>&1 && echo y"), y) | 51 | ifeq ($(shell sh -c "python-config --includes > /dev/null 2>&1 && echo y"), y) |
52 | PYTHON_PLUGINS := plugin_python.so | 52 | PYTHON_PLUGINS := plugin_python.so |
53 | BUILD_PYTHON := python python-plugin | 53 | BUILD_PYTHON := python python-plugin |
54 | PYTHON_SO_INSTALL := ctracecmd.install | ||
55 | PYTHON_PY_INSTALL := event-viewer.install tracecmd.install tracecmdgui.install | ||
54 | endif | 56 | endif |
55 | 57 | ||
56 | ifeq ("$(origin O)", "command line") | 58 | ifeq ("$(origin O)", "command line") |
@@ -426,7 +428,15 @@ $(PLUGINS_INSTALL): %.install : %.so force | |||
426 | 428 | ||
427 | install_plugins: $(PLUGINS_INSTALL) | 429 | install_plugins: $(PLUGINS_INSTALL) |
428 | 430 | ||
429 | install_cmd: all_cmd install_plugins | 431 | $(PYTHON_SO_INSTALL): %.install : %.so force |
432 | $(Q)$(call do_install, $<, '$(python_dir_SQ)') | ||
433 | |||
434 | $(PYTHON_PY_INSTALL): %.install : %.py force | ||
435 | $(Q)$(call do_install, $<, '$(python_dir_SQ)') | ||
436 | |||
437 | install_python: $(PYTHON_SO_INSTALL) $(PYTHON_PY_INSTALL) | ||
438 | |||
439 | install_cmd: all_cmd install_plugins install_python | ||
430 | $(Q)$(call do_install, trace-cmd, '$(bindir_SQ)') | 440 | $(Q)$(call do_install, trace-cmd, '$(bindir_SQ)') |
431 | 441 | ||
432 | install: install_cmd | 442 | install: install_cmd |