From 734e7f52290bd00ad48eb53f78481af7e1c61daa Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Tue, 1 Jun 2010 20:41:20 +0530 Subject: [PATCH] Makefile: Use $(sharedir)/gitweb for target 'install-gitweb' Export gitwebdir variable so that when user types the command 'make install-gitweb', gitweb is installed in $(sharedir)/gitweb rather than /var/www/cgi-bin. Now, $(sharedir)/gitweb is default for both 'install' and 'install-gitweb' targets. Remove 'gitwebdir=$(gitwebdir_SQ)' from gitweb part of 'install' target which is unneccessary now. Signed-off-by: Pavan Kumar Sunkara Acked-by: Jakub Narebski Signed-off-by: Junio C Hamano --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cc2b3b147d..ede73cae88 100644 --- a/Makefile +++ b/Makefile @@ -286,7 +286,7 @@ lib = lib # DESTDIR= pathsep = : -export prefix bindir sharedir sysconfdir +export prefix bindir sharedir sysconfdir gitwebdir CC = gcc AR = ar @@ -1978,7 +1978,7 @@ install: all $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install ifndef NO_PERL $(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install - $(MAKE) -C gitweb gitwebdir=$(gitwebdir_SQ) install + $(MAKE) -C gitweb install endif ifndef NO_PYTHON $(MAKE) -C git_remote_helpers prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install