diff mbox series

libtraceevent: install html files

Message ID 20201018211912.17541-1-sudipm.mukherjee@gmail.com (mailing list archive)
State Superseded
Headers show
Series libtraceevent: install html files | expand

Commit Message

Sudip Mukherjee Oct. 18, 2020, 9:19 p.m. UTC
Only the man pages were installed using "make install". Add rules to
install html files also.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
 tools/lib/traceevent/Documentation/Makefile | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Comments

Steven Rostedt Oct. 19, 2020, 1:42 p.m. UTC | #1
On Sun, 18 Oct 2020 22:19:12 +0100
Sudip Mukherjee <sudipm.mukherjee@gmail.com> wrote:

> Only the man pages were installed using "make install". Add rules to
> install html files also.
> 
> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> ---
>  tools/lib/traceevent/Documentation/Makefile | 14 ++++++++++++--

Thanks Sudip,

Although, to apply it to the libtraceevent.git repo, I had to strip off the
"tools/lib/traceevent/" from the file paths.

-- Steve


>  1 file changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/lib/traceevent/Documentation/Makefile b/tools/lib/traceevent/Documentation/Makefile
> index aa72ab96c3c1..dd3d62b17140 100644
> --- a/tools/lib/traceevent/Documentation/Makefile
> +++ b/tools/lib/traceevent/Documentation/Makefile
> @@ -147,7 +147,7 @@ html: $(MAN_HTML)
>  
>  $(MAN_HTML) $(DOC_MAN3): asciidoc.conf
>  
> -install: install-man
> +install: install-man install-html
>  
>  check-man-tools:
>  ifdef missing_tools
> @@ -161,12 +161,22 @@ do-install-man: man
>  
>  install-man: check-man-tools man do-install-man
>  
> -uninstall: uninstall-man
> +do-install-html: html
> +	$(call QUIET_INSTALL, Documentation-html) \
> +		$(INSTALL) -d -m 755 $(DESTDIR)$(htmldir); \
> +		$(INSTALL) -m 644 $(OUTPUT)*.html $(DESTDIR)$(htmldir);
> +
> +install-html: check-man-tools html do-install-html
> +
> +uninstall: uninstall-man uninstall-html
>  
>  uninstall-man:
>  	$(call QUIET_UNINST, Documentation-man) \
>  		$(Q)$(RM) $(addprefix $(DESTDIR)$(man3dir)/,$(DOC_MAN3))
>  
> +uninstall-html:
> +	$(call QUIET_UNINST, Documentation-html) \
> +		$(Q)$(RM) $(addprefix $(DESTDIR)$(htmldir)/,$(MAN_HTML))
>  
>  ifdef missing_tools
>    DO_INSTALL_MAN = $(warning Please install $(missing_tools) to have the man pages installed)
Sudip Mukherjee Oct. 19, 2020, 6:59 p.m. UTC | #2
Hi Steve,

On Mon, Oct 19, 2020 at 2:42 PM Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Sun, 18 Oct 2020 22:19:12 +0100
> Sudip Mukherjee <sudipm.mukherjee@gmail.com> wrote:
>
> > Only the man pages were installed using "make install". Add rules to
> > install html files also.
> >
> > Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> > ---
> >  tools/lib/traceevent/Documentation/Makefile | 14 ++++++++++++--
>
> Thanks Sudip,
>
> Although, to apply it to the libtraceevent.git repo, I had to strip off the
> "tools/lib/traceevent/" from the file paths.

I was actually confused about which repo is to be followed for
development purposes. I assumed all patches will land here and you
will then mirror them to libtraceevent.git repo when you decide to
make a release. I can send you a patch for libtraceevent.git repo if
you want.
Steven Rostedt Oct. 19, 2020, 10:18 p.m. UTC | #3
On Mon, 19 Oct 2020 19:59:18 +0100
Sudip Mukherjee <sudipm.mukherjee@gmail.com> wrote:

> I was actually confused about which repo is to be followed for
> development purposes. I assumed all patches will land here and you
> will then mirror them to libtraceevent.git repo when you decide to
> make a release. I can send you a patch for libtraceevent.git repo if
> you want.

A release has already been made:

  https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-1.1.0.tar.gz

-- Steve
diff mbox series

Patch

diff --git a/tools/lib/traceevent/Documentation/Makefile b/tools/lib/traceevent/Documentation/Makefile
index aa72ab96c3c1..dd3d62b17140 100644
--- a/tools/lib/traceevent/Documentation/Makefile
+++ b/tools/lib/traceevent/Documentation/Makefile
@@ -147,7 +147,7 @@  html: $(MAN_HTML)
 
 $(MAN_HTML) $(DOC_MAN3): asciidoc.conf
 
-install: install-man
+install: install-man install-html
 
 check-man-tools:
 ifdef missing_tools
@@ -161,12 +161,22 @@  do-install-man: man
 
 install-man: check-man-tools man do-install-man
 
-uninstall: uninstall-man
+do-install-html: html
+	$(call QUIET_INSTALL, Documentation-html) \
+		$(INSTALL) -d -m 755 $(DESTDIR)$(htmldir); \
+		$(INSTALL) -m 644 $(OUTPUT)*.html $(DESTDIR)$(htmldir);
+
+install-html: check-man-tools html do-install-html
+
+uninstall: uninstall-man uninstall-html
 
 uninstall-man:
 	$(call QUIET_UNINST, Documentation-man) \
 		$(Q)$(RM) $(addprefix $(DESTDIR)$(man3dir)/,$(DOC_MAN3))
 
+uninstall-html:
+	$(call QUIET_UNINST, Documentation-html) \
+		$(Q)$(RM) $(addprefix $(DESTDIR)$(htmldir)/,$(MAN_HTML))
 
 ifdef missing_tools
   DO_INSTALL_MAN = $(warning Please install $(missing_tools) to have the man pages installed)