summaryrefslogtreecommitdiff
path: root/common/Makefile.doc
diff options
context:
space:
mode:
Diffstat (limited to 'common/Makefile.doc')
-rw-r--r--common/Makefile.doc11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/Makefile.doc b/common/Makefile.doc
index 68f2cf06..e340791f 100644
--- a/common/Makefile.doc
+++ b/common/Makefile.doc
@@ -50,13 +50,14 @@ check-asciidoc:
@$(ASCIIDOC) --version | $(AWK) '{ exit $$2 !~ /^8\.2\./ }' || \
echo >&2 "Warning: asciidoc versions other than 8.2.x are unsupported"
-$(ADC_FILES): %.html: %.txt $(BASE)/Makefile.doc $(ADC_DEPS)
- @echo "DOC locale/$(LOCALE)/$@"
- $(ASCIIDOC) --unsafe -a linkcss -a quirks! -a lang=$(DOCLANG) -a doctitle="$(shell basename $@)" -o $@ $<
-
version.html: ../../NEWS $(BASE)/Makefile.doc $(ADC_DEPS)
@echo "DOC locale/$(LOCALE)/$@"
# NOTE: asciidoc doesn't source the conf file implicitly when processing stdin
sed -e '1i\
-HEADER' -e '/^[0-9]/d' -e '/^ \+\* version /s/.*version \+\([0-9.]\+\).*/section:Version{nbsp}\1[version-\1]\
+heading:Version{nbsp}information[version-information]' -e '/^[0-9]/d' -e '/^ \+\* version /s/.*version \+\([0-9.]\+\).*/section:Version{nbsp}\1[version-\1]\
/' ../../NEWS | ${ASCIIDOC} -f asciidoc.conf -a doctitle=version.html -o version.html -
+
+$(ADC_FILES): %.html: %.txt $(BASE)/Makefile.doc $(ADC_DEPS)
+ @echo "DOC locale/$(LOCALE)/$@"
+ $(ASCIIDOC) --unsafe -a linkcss -a quirks! -a lang=$(DOCLANG) -a doctitle="$(shell basename $@)" -o $@ $<
+