git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] gitweb: Create install target for gitweb in Makefile

From
Junio C Hamano <gitster@pobox.com>
Date
May 1, 2010, 19:45 UTC
Message-ID
<7vbpcz4d95.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100429235046.29606.35311.stgit@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
> Installing gitweb is now as easy as
>   # make gitwebdir=/var/www/cgi-bin gitweb-install  ;# as root
> The gitweb/INSTALL file was updated accordingly.

Just a style, but I prefer a blank line on both sides of an example command line like this.

Show 11 quoted lines
> There is a question whether to rely on correctly set file permissions
> during build phase, i.e.
>
> 	$(INSTALL) $(GITWEB_FILES) '$(DESTDIR_SQ)$(gitwebdir_SQ)'
>
> or whether to ensure correct file permissions during installl phase
>
> 	$(INSTALL) -m 755 $(GITWEB_PROGRAMS) '$(DESTDIR_SQ)$(gitwebdir_SQ)'
> 	$(INSTALL) -m 644 $(GITWEB_FILES)    '$(DESTDIR_SQ)$(gitwebdir_SQ)'
>
> Currently the first option is used.

Hmm, the reason being? I do not have a strong preference either way, but the primary Makefile seems to use "-m mode".

> Note that install-* targets, including new install-gitweb, are not
> marked as .PHONY
The reason being?

My preference for the standard targets like "all", "clean", and "install" is to make them double-colon rules and mark them as phoneys.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 2 of 5 in “gitweb: Create install target for gitweb in Makefile”
  1. gitweb: Create install target for gitweb in MakefileJakub Narebski, Apr 29, 2010
  2. Junio C HamanoMay 1, 2010
  3. Jakub NarebskiMay 1, 2010
  4. Petr BaudisMay 11, 2010
  5. J.H.May 11, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.