Documentation/Makefile: add missing dependency on asciidoctor-extensions
asciidoctor-extensions.rb has never changed, but when it does -- such as in the next commit --, it helps if the xml-files depend on it. We're casting the net a bit too wide here, since we'll be rebuilding even with AsciiDoc, which won't look at this file. But since this file changes so rarely, that should be ok. It's better than missing a dependency. Similarly, most of the html-files are produced directly from ".txt'; make the html-files too depend on asciidoctor-extensions.rb, both the HTMLified manual pages as well as the user-manual that does use .xml intermediary. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Martin Ågren committed
Feb 27, 2019 at 19:17 UTC
a15ef383e79011cb30b92401ea190f574b7ad632
1 file changed
+4
-4
Documentation/Makefile
+4
-4
@@ -334,12 +334,12 @@ clean:
334
$(RM) $(cmds_txt) $(mergetools_txt) *.made
335
$(RM) manpage-base-url.xsl
336
337
-$(MAN_HTML): %.html : %.txt asciidoc.conf
337
+$(MAN_HTML): %.html : %.txt asciidoc.conf asciidoctor-extensions.rb
338
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
339
$(TXT_TO_HTML) -d manpage -o $@+ $< && \
340
mv $@+ $@
341
342
-$(OBSOLETE_HTML): %.html : %.txto asciidoc.conf
342
+$(OBSOLETE_HTML): %.html : %.txto asciidoc.conf asciidoctor-extensions.rb
343
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
344
$(TXT_TO_HTML) -o $@+ $< && \
345
mv $@+ $@
@@ -351,12 +351,12 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
351
$(QUIET_XMLTO)$(RM) $@ && \
352
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
353
354
-%.xml : %.txt asciidoc.conf
354
+%.xml : %.txt asciidoc.conf asciidoctor-extensions.rb
355
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
356
$(TXT_TO_XML) -d manpage -o $@+ $< && \
357
mv $@+ $@
358
359
-user-manual.xml: user-manual.txt user-manual.conf
359
+user-manual.xml: user-manual.txt user-manual.conf asciidoctor-extensions.rb
360
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
361
$(TXT_TO_XML) -d book -o $@+ $< && \
362
mv $@+ $@