git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Makefile: Use $(sharedir)/gitweb for target 'install-gitweb'
@ 2010-06-01 15:11 Pavan Kumar Sunkara
  2010-06-01 19:50 ` Jakub Narebski
  0 siblings, 1 reply; 4+ messages in thread
From: Pavan Kumar Sunkara @ 2010-06-01 15:11 UTC (permalink / raw)
  To: git, jnareb, chriscool, pasky; +Cc: Pavan Kumar Sunkara

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 <pavan.sss1991@gmail.com>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 8f011a5..32e3146 100644
--- a/Makefile
+++ b/Makefile
@@ -294,7 +294,7 @@ lib = lib
 # DESTDIR=
 pathsep = :
 
-export prefix bindir sharedir sysconfdir
+export prefix bindir sharedir gitwebdir sysconfdir
 
 CC = gcc
 AR = ar
@@ -2049,7 +2049,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
-- 
1.7.1.447.g40f7.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Makefile: Use $(sharedir)/gitweb for target 'install-gitweb'
  2010-06-01 15:11 [PATCH] Makefile: Use $(sharedir)/gitweb for target 'install-gitweb' Pavan Kumar Sunkara
@ 2010-06-01 19:50 ` Jakub Narebski
  2010-06-02  4:31   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Narebski @ 2010-06-01 19:50 UTC (permalink / raw)
  To: Pavan Kumar Sunkara; +Cc: git, Christian Couder, Petr Baudis

On Tue, 1 June 2010, Pavan Kumar Sunkara wrote:

> 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 <pavan.sss1991@gmail.com>

For what it is worth:

Acked-by: Jakub Narebski <jnareb@gmail.com>

(But I have not tested it!)

> ---
>  Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 8f011a5..32e3146 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -294,7 +294,7 @@ lib = lib
>  # DESTDIR=
>  pathsep = :
>  
> -export prefix bindir sharedir sysconfdir
> +export prefix bindir sharedir gitwebdir sysconfdir

Nitpick: why not

  +export prefix bindir sharedir sysconfdir gitwebdir

i.e. have 'gitwebdir' last?  Not that it matters, though....

>  
>  CC = gcc
>  AR = ar
> @@ -2049,7 +2049,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

Nice.

>  endif
>  ifndef NO_PYTHON
>  	$(MAKE) -C git_remote_helpers prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
> -- 
> 1.7.1.447.g40f7.dirty
> 
> 

-- 
Jakub Narebski
Poland

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Makefile: Use $(sharedir)/gitweb for target 'install-gitweb'
  2010-06-01 19:50 ` Jakub Narebski
@ 2010-06-02  4:31   ` Junio C Hamano
  2010-06-02 14:49     ` Pavan Kumar Sunkara
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2010-06-02  4:31 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: Pavan Kumar Sunkara, git, Christian Couder, Petr Baudis

Jakub Narebski <jnareb@gmail.com> writes:

> On Tue, 1 June 2010, Pavan Kumar Sunkara wrote:
>
>> 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 <pavan.sss1991@gmail.com>
>
> For what it is worth:
>
> Acked-by: Jakub Narebski <jnareb@gmail.com>
>
> (But I have not tested it!)

I am wondering if we would also want to do something with this line

    gitwebdir ?= /var/www/cgi-bin

in gitweb/Makefile.  This is orthogonal to the patch under discussion
does, though.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Makefile: Use $(sharedir)/gitweb for target  'install-gitweb'
  2010-06-02  4:31   ` Junio C Hamano
@ 2010-06-02 14:49     ` Pavan Kumar Sunkara
  0 siblings, 0 replies; 4+ messages in thread
From: Pavan Kumar Sunkara @ 2010-06-02 14:49 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jakub Narebski, git, Christian Couder, Petr Baudis

>
> I am wondering if we would also want to do something with this line
>
>    gitwebdir ?= /var/www/cgi-bin
>
> in gitweb/Makefile.  This is orthogonal to the patch under discussion
> does, though.
>
>

Well, Let us say that we use /var/www/cgi-bin as default if user
downloads only gitweb and install it.
If he is installing git, then gitweb needs to be installed in
$(sharedir)/gitweb. Putting it as default in main Makefile is
supported.

So, It won't be orthogonal to the patch.

Thanks,
Pavan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-02 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-01 15:11 [PATCH] Makefile: Use $(sharedir)/gitweb for target 'install-gitweb' Pavan Kumar Sunkara
2010-06-01 19:50 ` Jakub Narebski
2010-06-02  4:31   ` Junio C Hamano
2010-06-02 14:49     ` Pavan Kumar Sunkara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).