diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-11-30 02:57:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-11-30 02:57:19 +0100 |
commit | 4615d3e2649458aefecffa12a067c9c3b6dc433a (patch) | |
tree | ae6cdf4bcd1fe987ceaa53ec501c4da61af6e0b2 | |
parent | A bit more before -rc1 (diff) | |
parent | Makefile: avoid multiple patterns when recipes generate one file (diff) | |
download | git-4615d3e2649458aefecffa12a067c9c3b6dc433a.tar.xz git-4615d3e2649458aefecffa12a067c9c3b6dc433a.zip |
Merge branch 'ps/gnumake-4.4-fix'
* ps/gnumake-4.4-fix:
Makefile: avoid multiple patterns when recipes generate one file
-rw-r--r-- | Documentation/Makefile | 12 |
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 $@ $< |