Skip to content

Commit 4615d3e

Browse files
committed
Merge branch 'ps/gnumake-4.4-fix'
* ps/gnumake-4.4-fix: Makefile: avoid multiple patterns when recipes generate one file
2 parents 083e012 + 9f95c7a commit 4615d3e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Documentation/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,16 @@ $(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
351351
manpage-base-url.xsl: manpage-base-url.xsl.in
352352
$(QUIET_GEN)sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
353353

354-
%.1 %.5 %.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
355-
$(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
354+
355+
manpage-prereqs := manpage-base-url.xsl $(wildcard manpage*.xsl)
356+
manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
357+
358+
%.1 : %.xml $(manpage-prereqs)
359+
$(manpage-cmd)
360+
%.5 : %.xml $(manpage-prereqs)
361+
$(manpage-cmd)
362+
%.7 : %.xml $(manpage-prereqs)
363+
$(manpage-cmd)
356364

357365
%.xml : %.txt $(ASCIIDOC_DEPS)
358366
$(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<

0 commit comments

Comments
 (0)