summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPavan Kumar Sunkara <pavan.sss1991@gmail.com>2010-05-28 11:55:50 +0530
committerJunio C Hamano <gitster@pobox.com>2010-05-31 17:56:39 -0700
commitbc9519683cea289b6ba7d55fa8b947ac155467c6 (patch)
treed6ffcf336b12a4cb7659f145f34dfdbc1c70bc7f /Makefile
parent18d05328f3333e63bfffa65ac887ea16de60918c (diff)
downloadgit-bc9519683cea289b6ba7d55fa8b947ac155467c6.tar.gz
gitweb: Set default destination directory for installing gitweb in Makefile
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1ec90f53fa..1f51eba4e7 100644
--- 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)