diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-04-09 12:29:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-04-09 12:48:07 -0400 |
commit | 9a6f8264525228eab1baee09f567a5d72c05b0ac (patch) | |
tree | 485901a5066d499ab8e82fc26a01bfcd630d6954 /Makefile | |
parent | 933e3d54c021be56213b1475e5ac4fbebc7b48f1 (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-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -23,8 +23,13 @@ bindir_relative = bin | |||
23 | bindir = $(prefix)/$(bindir_relative) | 23 | bindir = $(prefix)/$(bindir_relative) |
24 | man_dir = $(prefix)/share/man | 24 | man_dir = $(prefix)/share/man |
25 | man_dir_SQ = '$(subst ','\'',$(man_dir))' | 25 | man_dir_SQ = '$(subst ','\'',$(man_dir))' |
26 | html_install = $(prefix)/share/kernelshark/html | ||
27 | html_install_SQ = '$(subst ','\'',$(html_install))' | ||
28 | img_install = $(prefix)/share/kernelshark/html/images | ||
29 | img_install_SQ = '$(subst ','\'',$(img_install))' | ||
26 | 30 | ||
27 | export man_dir man_dir_SQ INSTALL | 31 | export man_dir man_dir_SQ html_install html_install_SQ INSTALL |
32 | export img_install img_install_SQ | ||
28 | 33 | ||
29 | ifeq ($(prefix),$(HOME)) | 34 | ifeq ($(prefix),$(HOME)) |
30 | plugin_dir = $(HOME)/.trace-cmd/plugins | 35 | plugin_dir = $(HOME)/.trace-cmd/plugins |
@@ -34,6 +39,9 @@ PLUGIN_DIR = -DPLUGIN_DIR=$(plugin_dir) | |||
34 | PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))' | 39 | PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))' |
35 | endif | 40 | endif |
36 | 41 | ||
42 | HELP_DIR = -DHELP_DIR=$(html_install) | ||
43 | HELP_DIR_SQ = '$(subst ','\'',$(HELP_DIR))' | ||
44 | |||
37 | # copy a bit from Linux kbuild | 45 | # copy a bit from Linux kbuild |
38 | 46 | ||
39 | ifeq ("$(origin V)", "command line") | 47 | ifeq ("$(origin V)", "command line") |
@@ -124,6 +132,7 @@ REBUILD_GUI = /bin/true | |||
124 | G = | 132 | G = |
125 | N = @/bin/true || | 133 | N = @/bin/true || |
126 | 134 | ||
135 | CONFIG_FLAGS += $(HELP_DIR_SQ) | ||
127 | else | 136 | else |
128 | 137 | ||
129 | CONFIG_INCLUDES = | 138 | CONFIG_INCLUDES = |