aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-04-09 12:29:57 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-04-09 12:48:07 -0400
commit9a6f8264525228eab1baee09f567a5d72c05b0ac (patch)
tree485901a5066d499ab8e82fc26a01bfcd630d6954 /Makefile
parent933e3d54c021be56213b1475e5ac4fbebc7b48f1 (diff)
kernelshark/build: Install HTML doc and reference it
Install the HTML document on "make install_doc" and have the kernelshark executable be able to reference that location. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7dde5cf..cded750 100644
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,13 @@ bindir_relative = bin
23bindir = $(prefix)/$(bindir_relative) 23bindir = $(prefix)/$(bindir_relative)
24man_dir = $(prefix)/share/man 24man_dir = $(prefix)/share/man
25man_dir_SQ = '$(subst ','\'',$(man_dir))' 25man_dir_SQ = '$(subst ','\'',$(man_dir))'
26html_install = $(prefix)/share/kernelshark/html
27html_install_SQ = '$(subst ','\'',$(html_install))'
28img_install = $(prefix)/share/kernelshark/html/images
29img_install_SQ = '$(subst ','\'',$(img_install))'
26 30
27export man_dir man_dir_SQ INSTALL 31export man_dir man_dir_SQ html_install html_install_SQ INSTALL
32export img_install img_install_SQ
28 33
29ifeq ($(prefix),$(HOME)) 34ifeq ($(prefix),$(HOME))
30plugin_dir = $(HOME)/.trace-cmd/plugins 35plugin_dir = $(HOME)/.trace-cmd/plugins
@@ -34,6 +39,9 @@ PLUGIN_DIR = -DPLUGIN_DIR=$(plugin_dir)
34PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))' 39PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
35endif 40endif
36 41
42HELP_DIR = -DHELP_DIR=$(html_install)
43HELP_DIR_SQ = '$(subst ','\'',$(HELP_DIR))'
44
37# copy a bit from Linux kbuild 45# copy a bit from Linux kbuild
38 46
39ifeq ("$(origin V)", "command line") 47ifeq ("$(origin V)", "command line")
@@ -124,6 +132,7 @@ REBUILD_GUI = /bin/true
124G = 132G =
125N = @/bin/true || 133N = @/bin/true ||
126 134
135CONFIG_FLAGS += $(HELP_DIR_SQ)
127else 136else
128 137
129CONFIG_INCLUDES = 138CONFIG_INCLUDES =