]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: avoid multiple patterns when recipes generate one file
authorPaul Smith <psmith@gnu.org>
Sun, 27 Nov 2022 22:42:51 +0000 (17:42 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Nov 2022 01:18:55 +0000 (10:18 +0900)
commit9f95c7aefa8419b697972abd9d25ce9062fac2bf
tree1f96cc089c6c8086a17ff4ab2def760a58603ec7
parente7e5c6f715b2de7bea0d39c7d2ba887335b40aa0
Makefile: avoid multiple patterns when recipes generate one file

A GNU make pattern rule with multiple targets has always meant that
a single invocation of the recipe will build all the targets.
However in older versions of GNU make a recipe that did not really
build all the targets would be tolerated.

Starting with GNU make 4.4 this behavior is deprecated and pattern
rules are expected to generate files to match all the patterns.
If not all targets are created then GNU make will not consider any
target up to date and will re-run the recipe when it is run again.

Modify Documentation/Makefile to split the man page-creating pattern
rule into a separate pattern rule for each pattern.

Reported-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Paul Smith <psmith@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile