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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jakub Narebski <jnareb@xxxxxxxxx> 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.

> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]