aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-11-30 10:57:19 +0900
committerJunio C Hamano <gitster@pobox.com>2022-11-30 10:57:19 +0900
commit4615d3e2649458aefecffa12a067c9c3b6dc433a (patch)
treeae6cdf4bcd1fe987ceaa53ec501c4da61af6e0b2 /Documentation/Makefile
parent083e01275b81eb6105247ec522adf280d99f6b56 (diff)
parent9f95c7aefa8419b697972abd9d25ce9062fac2bf (diff)
downloadgit-4615d3e2649458aefecffa12a067c9c3b6dc433a.tar.gz
Merge branch 'ps/gnumake-4.4-fix'
* ps/gnumake-4.4-fix: Makefile: avoid multiple patterns when recipes generate one file
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 5e1a7f655c..9c67c3a1c5 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -351,8 +351,16 @@ $(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
manpage-base-url.xsl: manpage-base-url.xsl.in
$(QUIET_GEN)sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
-%.1 %.5 %.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
- $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+
+manpage-prereqs := manpage-base-url.xsl $(wildcard manpage*.xsl)
+manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+
+%.1 : %.xml $(manpage-prereqs)
+ $(manpage-cmd)
+%.5 : %.xml $(manpage-prereqs)
+ $(manpage-cmd)
+%.7 : %.xml $(manpage-prereqs)
+ $(manpage-cmd)
%.xml : %.txt $(ASCIIDOC_DEPS)
$(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<