gitweb/Makefile: include in top-level Makefile
commitaffc3b755cb4d1ac87096bbb93f5f2e57b703894
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 28 Jun 2022 10:16:00 +0000 (28 12:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2022 20:20:05 +0000 (28 13:20 -0700)
tree202f05557ba4142b232c9e4c62de0900617e0d77
parent27438ef5e043ebca6336274c5b4e79287749eca6
gitweb/Makefile: include in top-level Makefile

Include the gitweb/Makefile in the top-level Makefile rather than
calling it as a sub-Makefile. As noted in the thread starting at at
[1] (in particular [2]) we'll pay a high cost on NOOP runs of "make"
just to figure out that we have nothing to do for "make gitweb".

The "gitweb" script also isn't maintained out-of-tree, unlike
"gitk-git" or "git-gui", which both have their own "Makefile". Other
parts of it are already integrated into our main Makefiles, e.g. the
documentation is built by Documentation/Makefile since
07ea4df2780 (gitweb: Add gitweb(1) manpage for gitweb itself,
2011-10-16).

1. https://lore.kernel.org/git/20220525205651.825669-1-szeder.dev@gmail.com/
2. https://lore.kernel.org/git/220526.86k0a96sv2.gmgdl@evledraar.gmail.com/

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