<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb/Makefile, branch v2.41.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.41.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.41.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-06-28T20:20:05Z</updated>
<entry>
<title>gitweb/Makefile: add a "NO_GITWEB" parameter</title>
<updated>2022-06-28T20:20:05Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:16:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a35258c62adf5c0e591f2335f3427434ff0b63f0'/>
<id>urn:sha1:a35258c62adf5c0e591f2335f3427434ff0b63f0</id>
<content type='text'>
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 &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/Makefile: include in top-level Makefile</title>
<updated>2022-06-28T20:20:05Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=affc3b755cb4d1ac87096bbb93f5f2e57b703894'/>
<id>urn:sha1:affc3b755cb4d1ac87096bbb93f5f2e57b703894</id>
<content type='text'>
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 &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: remove "test" and "test-installed" targets</title>
<updated>2022-06-28T20:20:05Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=27438ef5e043ebca6336274c5b4e79287749eca6'/>
<id>urn:sha1:27438ef5e043ebca6336274c5b4e79287749eca6</id>
<content type='text'>
Remove the special "test" targets for gitweb added in
958a8467216 (gitweb/Makefile: Add 'test' and 'test-installed' targets,
2010-09-26). Unlike e.g. "contrib/scalar" and "contrib/subtree" the
"gitweb" tests themselves live in our top-level t/ directory.

It therefore doesn't make sense to maintain this indirection, no more
than it would to have a "git-send-email-test". By dropping it we'll
also free other tests to use the t95*.sh prefix.

These removed targets are unlikely to be used by anyone, and to the
extent that they are we can easily use an invocation like this
instead:

	make test T='t[0-9]*gitweb*.sh'

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/Makefile: prepare to merge into top-level Makefile</title>
<updated>2022-06-28T20:20:04Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:15:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b82d66eb0cf840a991ff906ab4679785eae4605a'/>
<id>urn:sha1:b82d66eb0cf840a991ff906ab4679785eae4605a</id>
<content type='text'>
Since the "gitweb/Makefile" was split out from the top-level Makefile
in 62331ef1637 (gitweb: Makefile improvements, 2010-01-30) we've kept
the inter-dependencies between the two, and worse have dealt with a
lot of duplication as a result.

In preparation for merging the two again add a MAK_DIR_GITWEB variable
to various rules in it. This will allow us to set this variable to
"gitweb/" as we include it in the top-level Makefile, which will
minimize the size of the subsequent diff.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/Makefile: clear up and de-duplicate the gitweb.{css,js} vars</title>
<updated>2022-06-28T20:20:04Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:15:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=564ebde3d323fc3b22534dcbb32723807771b955'/>
<id>urn:sha1:564ebde3d323fc3b22534dcbb32723807771b955</id>
<content type='text'>
Change the variable definitions for the $(GITWEB_CSS) and $(GITWEB_JS)
so that we have a clear separation between what we use as "in" files,
v.s. our "min" files. We can now make the appending to $(GITWEB_FILES)
unconditional, since $(GITWEB_{JS,CSS}) is either the "min" or
non-"min" version. This reduces the duplication within the file.

While we're at it let's initialize "GITWEB_JSLIB_FILES" as we normally
do with such variables.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/Makefile: add a $(GITWEB_ALL) variable</title>
<updated>2022-06-28T20:20:04Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:15:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e08fa5e2bf9cd254a742a0ac3e950a12fc45915'/>
<id>urn:sha1:1e08fa5e2bf9cd254a742a0ac3e950a12fc45915</id>
<content type='text'>
Declare the targets that the "all" target depends on with a new
$(GITWEB_ALL) variable. This will help to reduce churn in subsequent
commits.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/Makefile: define all .PHONY prerequisites inline</title>
<updated>2022-06-28T20:20:04Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:15:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7decdb9b4ac322158069645685b7527cba65a7e7'/>
<id>urn:sha1:7decdb9b4ac322158069645685b7527cba65a7e7</id>
<content type='text'>
Move the '.PHONY' definition so that it's split up and accompanies the
relevant as they're defined. This will make a subsequent diff smaller
as we'll remove some of these, and won't need to re-edit the
now-removed '.PHONY' line.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/Makefile: conditionally include ../GIT-VERSION-FILE</title>
<updated>2020-12-09T00:56:56Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsayjones.plus.com</email>
</author>
<published>2020-12-08T22:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e3a9237e8433351b8f9a45fa749b6aad3ce5164b'/>
<id>urn:sha1:e3a9237e8433351b8f9a45fa749b6aad3ce5164b</id>
<content type='text'>
The 'clean' target is still noticeably slow on cygwin, despite the
improvements made by previous patches. For example, the second
invocation of 'make clean' below:

  $ make clean &gt;/dev/null 2&gt;&amp;1
  $ make clean
  ...
  make[1]: Entering directory '/home/ramsay/git/gitweb'
  make[2]: Entering directory '/home/ramsay/git'
  make[2]: 'GIT-VERSION-FILE' is up to date.
  make[2]: Leaving directory '/home/ramsay/git'
  ...
  $

has been timed at 10.361s on my laptop (an old core i5-4200M @ 2.50GHz,
8GB RAM, 1TB HDD).

Notice that the 'clean' target is making a nested call to the parent
Makefile to ensure that the GIT-VERSION-FILE is up-to-date. This is to
ensure that the $(GIT_VERSION) make variable is set, once that file had
been included. However, the 'clean' target does not use the $(GIT_VERSION)
variable, directly or indirectly, so it does not have any affect on what
the target removes. Therefore, the time spent on ensuring an up to date
GIT-VERSION-FILE is wasted effort.

In order to eliminate such wasted effort, use the value of the internal
$(MAKECMDGOALS) variable to only '-include ../GIT-VERSION-FILE' when the
target is not 'clean'. (This drops the time down to 8.430s, on my laptop,
giving an improvement of 18.64%).

Signed-off-by: Ramsay Jones &lt;ramsay@ramsayjones.plus.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rj/gitweb-clean-js'</title>
<updated>2011-10-27T19:04:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-27T19:04:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f124fe3061d4da53bad3a03fd2875141e8a7a48e'/>
<id>urn:sha1:f124fe3061d4da53bad3a03fd2875141e8a7a48e</id>
<content type='text'>
* rj/gitweb-clean-js:
  gitweb/Makefile: Remove static/gitweb.js in the clean target
</content>
</entry>
<entry>
<title>gitweb/Makefile: Remove static/gitweb.js in the clean target</title>
<updated>2011-10-26T21:03:58Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2011-10-25T17:15:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a80b263e37fd06f3f6335c07493541070631d10e'/>
<id>urn:sha1:a80b263e37fd06f3f6335c07493541070631d10e</id>
<content type='text'>
Since 9a86dd5 (gitweb: Split JavaScript for maintability, combining on
build, 2011-04-28), static/gitweb.js has been a build product that should
be cleaned upon "make clean".

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
