gitweb: Set default destination directory for installing gitweb in Makefile
authorPavan Kumar Sunkara <pavan.sss1991@gmail.com>
Fri, 28 May 2010 06:25:50 +0000 (11:55 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jun 2010 00:56:39 +0000 (17:56 -0700)
Currently installing gitweb requires to give a target directory
(via 'gitwebdir' build variable).  Giving it a default value
protects against user errors.

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Petr Baudis <pasky@ucw.cz>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 1ec90f53faeec949a1240bd362096f31426d3a68..1f51eba4e73105e810306cd89c66049be59462f5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -272,6 +272,7 @@ mandir = share/man
 infodir = share/info
 gitexecdir = libexec/git-core
 sharedir = $(prefix)/share
+gitwebdir = $(sharedir)/gitweb
 template_dir = share/git-core/templates
 htmldir = share/doc/git-doc
 ifeq ($(prefix),/usr)