kernelshark: install documentation

This commit is contained in:
Bas van Dijk 2019-07-25 22:13:17 +02:00
parent 4542cca0b2
commit 585de35cd6
2 changed files with 21 additions and 6 deletions

View File

@ -1,20 +1,22 @@
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 21e42fd..b74c912 100644
index 21e42fd..826361d 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -108,7 +108,9 @@ $(IMGS_INSTALL): %.png.install : %.png force
@@ -108,7 +108,11 @@ $(IMGS_INSTALL): %.png.install : %.png force
GUI_INSTALL = $(HTML_INSTALL) $(IMGS_INSTALL)
-install: $(MAN1_INSTALL) $(MAN5_INSTALL) $(GUI_INSTALL)
+install_man: $(MAN1_INSTALL) $(MAN5_INSTALL)
+
+install: install_man $(GUI_INSTALL)
+install_gui: $(GUI_INSTALL)
+
+install: install_man install_gui
clean:
(cd $(obj); \
diff --git a/Makefile b/Makefile
index 3e63e9e..65743c6 100644
index 3e63e9e..146fe88 100644
--- a/Makefile
+++ b/Makefile
@@ -292,7 +292,7 @@ libtraceevent.a: $(LIBTRACEEVENT_STATIC)
@ -35,12 +37,15 @@ index 3e63e9e..65743c6 100644
$(Q)$(call do_install,$(src)/include/traceevent/event-parse.h,$(includedir_SQ)/traceevent)
$(Q)$(call do_install,$(src)/include/traceevent/trace-seq.h,$(includedir_SQ)/traceevent)
$(Q)$(call do_install,$(src)/include/trace-cmd/trace-cmd.h,$(includedir_SQ))
@@ -359,6 +361,9 @@ doc:
@@ -359,6 +361,12 @@ doc:
doc_clean:
$(MAKE) -C $(src)/Documentation clean
+install_man:
+ $(MAKE) -C $(src)/Documentation install_man
+
+install_gui_docs:
+ $(MAKE) -C $(src)/Documentation install_gui
+
install_doc:
$(MAKE) -C $(src)/Documentation install

View File

@ -8,7 +8,11 @@ in mkDerivation rec {
src = fetchgit srcSpec;
sourceRoot = "trace-cmd-${shortRev}/kernel-shark";
patches = [ ./fix-Makefiles.patch ];
outputs = [ "out" "doc" ];
preConfigure = "pushd kernel-shark";
nativeBuildInputs = [ cmake doxygen graphviz ];
@ -22,6 +26,12 @@ in mkDerivation rec {
"-DTRACEEVENT_LIBRARY=${trace-cmd.lib}/lib/libtraceevent.a"
];
preInstall = ''
popd
make install_gui_docs prefix=$doc
pushd kernel-shark/build
'';
meta = with stdenv.lib; {
description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
homepage = http://kernelshark.org/;