git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 6/8] doc: refactor common dependencies

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 12, 2021, 22:28 UTC
Message-ID
<20210512222803.508446-7-felipe.contreras@gmail.com>
In-Reply-To
<20210512222803.508446-1-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 Documentation/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index d02bd848e8..f846bb91ee 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -140,6 +140,7 @@ ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \
 		-amanversion=$(GIT_VERSION) \
 		-amanmanual='Git Manual' -amansource='Git'
 ASCIIDOC_BASE = '$(SHELL_PATH_SQ)' ./asciidoc-helper.sh $(ASCIIDOC_COMMON)
+ASCIIDOC_DEPS = asciidoc.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
 TXT_TO_HTML = $(ASCIIDOC_BASE) -b $(ASCIIDOC_HTML)
 TXT_TO_XML = $(ASCIIDOC_BASE) -b $(ASCIIDOC_DOCBOOK)
 MANPAGE_XSL = manpage-normal.xsl
@@ -356,10 +357,10 @@ clean:
 	$(RM) manpage-base-url.xsl
 	$(RM) GIT-ASCIIDOCFLAGS
 
-$(MAN_HTML): %.html : %.txt asciidoc.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
+$(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
 	$(QUIET_ASCIIDOC)$(TXT_TO_HTML) -d manpage -o $@ $<
 
-$(OBSOLETE_HTML): %.html : %.txto asciidoc.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
+$(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
 	$(QUIET_ASCIIDOC)$(TXT_TO_HTML) -o $@ $<
 
 manpage-base-url.xsl: manpage-base-url.xsl.in
@@ -368,7 +369,7 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
 %.1 %.5 %.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
 	$(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
 
-%.xml : %.txt asciidoc.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
+%.xml : %.txt $(ASCIIDOC_DEPS)
 	$(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<
 
 user-manual.xml: user-manual.txt user-manual.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
-- 
2.31.1
Previous: Martin Ågren
Message 19 of 19 in “doc: asciidoc cleanups”
  1. 0/8 doc: asciidoc cleanupsFelipe Contreras, May 12, 2021
  2. 3/8 doc: disable asciidoc-helper for asciidoctorFelipe Contreras, May 12, 2021
  3. 2/8 doc: add an asciidoc helperFelipe Contreras, May 12, 2021
  4. Ævar Arnfjörð BjarmasonMay 13, 2021
  5. Felipe ContrerasMay 13, 2021
  6. Junio C HamanoMay 13, 2021
  7. 1/8 doc: standardize asciidoc callsFelipe Contreras, May 12, 2021
  8. 4/8 doc: simplify the handling of interruptionsFelipe Contreras, May 12, 2021
  9. Junio C HamanoMay 13, 2021
  10. Felipe ContrerasMay 13, 2021
  11. 5/8 doc: remove redundant rmFelipe Contreras, May 12, 2021
  12. Ævar Arnfjörð BjarmasonMay 13, 2021
  13. Felipe ContrerasMay 13, 2021
  14. 8/8 doc: join xml and man rulesFelipe Contreras, May 12, 2021
  15. Martin ÅgrenMay 13, 2021
  16. Felipe ContrerasMay 13, 2021
  17. 7/8 doc: improve asciidoc dependenciesFelipe Contreras, May 12, 2021
  18. Martin ÅgrenMay 13, 2021
  19. 6/8 doc: refactor common dependenciesFelipe Contreras, May 12, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.