]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation/Makefile: add missing xsl dependencies for manpages
authorMartin Ågren <martin.agren@gmail.com>
Wed, 27 Feb 2019 18:17:52 +0000 (19:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Mar 2019 07:05:23 +0000 (16:05 +0900)
These stylesheets very rarely change, but when they do, it really helps
if the manpages depend on them. We're casting the net a bit too wide
here, since we'll only ever use a subset of the stylesheets, but since
these files change so rarely, that should be ok. It's better than
missing a dependency.

Observe that manpage-base-url.xsl is a generated file, so we need to
list it explicitly, besides the `wildcard` expression we're adding here.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile

index d5d936e6a7a3dd8839901a0dd606cdc813249c1c..ea6b8e5d723fcb3315a19505d13c72ee7bd7051f 100644 (file)
@@ -347,7 +347,7 @@ $(OBSOLETE_HTML): %.html : %.txto asciidoc.conf
 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
+%.1 %.5 %.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
        $(QUIET_XMLTO)$(RM) $@ && \
        $(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<