gitweb/Makefile: add a "NO_GITWEB" parameter
commita35258c62adf5c0e591f2335f3427434ff0b63f0
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 28 Jun 2022 10:16:02 +0000 (28 12:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2022 20:20:05 +0000 (28 13:20 -0700)
treeb4f78d29c6c48fbc3eaac84009f44ce15a557d32
parentd3b827408c5a1148d7c7ec46d07380c31b0796e7
gitweb/Makefile: add a "NO_GITWEB" parameter

From looking at the {Free,Net,Dragonfly}BSD packages for git[1]
they've been monkeypatching "gitweb" out of the Makefile, let's be
nicer and provide a NO_GITWEB=Y for their use.

For the "all" target this allows for optionally restoring what's been
the status quo before the preceding commit, but now we'll also behave
correctly on the subsequent "make install".

As before our installation of gitweb can be suppressed with
NO_PERL. For backwards compatibility the NO_PERL=Y flag by itself
still doesn't change whether or not we build gitweb, unlike the new
NO_GITWEB=Y flag.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
gitweb/Makefile