Skip to content
Snippets Groups Projects
Commit 07052cf6 authored by Jean-Noël Avila's avatar Jean-Noël Avila
Browse files

Factorize asciidoctor pararms and resolve litdd macro


litdd macro is meant to replace '\--' which would be interpreted as a
long hyphen instead of double-dash. One of those so-called
simplifications that make it difficult to predict the output of
asciidoc.

Signed-off-by: default avatarJean-Noël Avila <jn.avila@free.fr>
parent ce136638
No related branches found
No related tags found
No related merge requests found
...@@ -44,16 +44,20 @@ ifndef V ...@@ -44,16 +44,20 @@ ifndef V
endif endif
-include ../GIT-VERSION-FILE -include ../GIT-VERSION-FILE
ASCIIDOC_EXTRA = -d manpage -I.. -I. -rasciidoctor-extensions
ASCIIDOC_EXTRA += -amanmanual='Git Manual' \
-amansource='Git $(GIT_VERSION)' \
-amanversion=$(GIT_VERSION)
ASCIIDOC_EXTRA += -alitdd='\--'
$(HTML_FILTER): %.html: %.txt $(HTML_FILTER): %.html: %.txt
$(QUIET_ASCIIDOC)asciidoctor -b xhtml5 -d manpage -d manpage -I.. -I. -rasciidoctor-extensions \ $(QUIET_ASCIIDOC)asciidoctor -b xhtml5 \
-amanversion=$(GIT_VERSION) -amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' $< $(ASCIIDOC_EXTRA) $<
MANPAGES=$(patsubst %.txt,%.1,$(MAN_FILTER)) MANPAGES=$(patsubst %.txt,%.1,$(MAN_FILTER))
$(MANPAGES): %.1: %.txt $(MANPAGES): %.1: %.txt
$(QUIET_ASCIIDOC)asciidoctor -b manpage -d manpage -o $@ \ $(QUIET_ASCIIDOC)asciidoctor -b manpage -o $@ \
-I. -I.. -rasciidoctor-extensions \ $(ASCIIDOC_EXTRA) $<
-amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' $<
man: $(MANPAGES) man: $(MANPAGES)
html: $(HTML_FILTER) html: $(HTML_FILTER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment