Skip to content

Commit e391859

Browse files
ferrous26gitster
authored andcommitted
gitweb: update INSTALL to use shorter make target
Gitweb can be generated by the gitweb/gitweb.cgi target or the gitweb target. Since the gitweb target is shorter, I think it would be better to have new users be instructed to use it. Signed-off-by: Mark Rada <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a8ab675 commit e391859

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

gitweb/INSTALL

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ GIT web Interface (gitweb) Installation
22
=======================================
33

44
First you have to generate gitweb.cgi from gitweb.perl using
5-
"make gitweb/gitweb.cgi", then copy appropriate files (gitweb.cgi,
6-
gitweb.js, gitweb.css, git-logo.png and git-favicon.png) to their
7-
destination. For example if git was (or is) installed with /usr prefix,
8-
you can do
5+
"make gitweb", then copy appropriate files (gitweb.cgi, gitweb.js,
6+
gitweb.css, git-logo.png and git-favicon.png) to their destination.
7+
For example if git was (or is) installed with /usr prefix, you can do
98

10-
$ make prefix=/usr gitweb/gitweb.cgi ;# as yourself
9+
$ make prefix=/usr gitweb ;# as yourself
1110
# cp gitweb/git* /var/www/cgi-bin/ ;# as root
1211

1312
Alternatively you can use autoconf generated ./configure script to
@@ -16,7 +15,7 @@ instead
1615

1716
$ make configure ;# as yourself
1817
$ ./configure --prefix=/usr ;# as yourself
19-
$ make gitweb/gitweb.cgi ;# as yourself
18+
$ make gitweb ;# as yourself
2019
# cp gitweb/git* /var/www/cgi-bin/ ;# as root
2120

2221
The above example assumes that your web server is configured to run
@@ -32,8 +31,7 @@ file for gitweb (in gitweb/README).
3231

3332
- There are many configuration variables which affect building of
3433
gitweb.cgi; see "default configuration for gitweb" section in main
35-
(top dir) Makefile, and instructions for building gitweb/gitweb.cgi
36-
target.
34+
(top dir) Makefile, and instructions for building gitweb target.
3735

3836
One of the most important is where to find the git wrapper binary. Gitweb
3937
tries to find the git wrapper at $(bindir)/git, so you have to set $bindir
@@ -86,7 +84,7 @@ Build example
8684
GITWEB_LOGO="/gitweb/git-logo.png" \
8785
GITWEB_FAVICON="/gitweb/git-favicon.png" \
8886
bindir=/usr/local/bin \
89-
gitweb/gitweb.cgi
87+
gitweb
9088

9189
cp -fv ~/git/gitweb/gitweb.{cgi,js,css} \
9290
~/git/gitweb/git-{favicon,logo}.png \

0 commit comments

Comments
 (0)