aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-06-04 12:25:13 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-07 10:04:53 -0400
commit1249a287b9ca730966f753d378086520b76db43f (patch)
tree9b3f8ba01a389e49196b017186da608484cad362
parent0a2d261d02f4ea6df4a7de0448e431013cf93895 (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--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index db270ac..ad2d708 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,8 @@ endif
51ifeq ($(shell sh -c "python-config --includes > /dev/null 2>&1 && echo y"), y) 51ifeq ($(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
54endif 56endif
55 57
56ifeq ("$(origin O)", "command line") 58ifeq ("$(origin O)", "command line")
@@ -426,7 +428,15 @@ $(PLUGINS_INSTALL): %.install : %.so force
426 428
427install_plugins: $(PLUGINS_INSTALL) 429install_plugins: $(PLUGINS_INSTALL)
428 430
429install_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
437install_python: $(PYTHON_SO_INSTALL) $(PYTHON_PY_INSTALL)
438
439install_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
432install: install_cmd 442install: install_cmd