[PATCH] fix the installation path for html documentation

Subsystems: kernel build + files below scripts/ (unless maintained elsewhere), the rest

DORMANTno replies

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

[PATCH] fix the installation path for html documentation

From: Michael J Gruber <hidden>
Date: 2016-06-15 22:46:08

Since 026fa0d5ad9538ca76838070861531c037d7b9ba (Move computation of
absolute paths from Makefile to runtime (in preparation for
RUNTIME_PREFIX) the installation of html doc was broken:
Documentation/Makefile does not know how to resolve relative dirs, which
results in html doc being installed in
$(git-build-root)/Documentation/share/doc/git-doc.

Fix this by not exporting htmldir from Makefile since this allows
Documentation/Makefile to compute htmldir from prefix.

Signed-off-by: Michael J Gruber <redacted>
---
An alternative would be to teach Documentation/Makefile to take the
relative htmldir and make it into an absolute path. But the approach I'm
taking with this patch as analogous to how mandir is handled, with the
same draw back. But all is well as long as the build monkey messes with
prefix only.

 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 27b9569..862b96c 100644
--- a/Makefile
+++ b/Makefile
@@ -228,7 +228,7 @@ GITWEB_FAVICON = git-favicon.png
 GITWEB_SITE_HEADER =
 GITWEB_SITE_FOOTER =
 
-export prefix bindir sharedir htmldir sysconfdir
+export prefix bindir sharedir sysconfdir
 
 CC = gcc
 AR = ar
-- 
1.6.1.2.253.ga34a

Re: [PATCH] fix the installation path for html documentation

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:46:08

On Dienstag, 10. Februar 2009, Michael J Gruber wrote:
Since 026fa0d5ad9538ca76838070861531c037d7b9ba (Move computation of
absolute paths from Makefile to runtime (in preparation for
RUNTIME_PREFIX) the installation of html doc was broken:
Documentation/Makefile does not know how to resolve relative dirs, which
results in html doc being installed in
$(git-build-root)/Documentation/share/doc/git-doc.

Fix this by not exporting htmldir from Makefile since this allows
Documentation/Makefile to compute htmldir from prefix.

Signed-off-by: Michael J Gruber <redacted>
---
An alternative would be to teach Documentation/Makefile to take the
relative htmldir and make it into an absolute path. But the approach I'm
taking with this patch as analogous to how mandir is handled, with the
same draw back. But all is well as long as the build monkey messes with
prefix only.
Makes sense. There is no point handling mandir and htmldir differently.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help