mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 08:58:00 +01:00
Check asciidoc version on 'make doc'
This commit is contained in:
@@ -63,7 +63,8 @@ info:
|
|||||||
@echo -e "jar files $(shell echo ${JAR_FILES} | sed 's/ /\\n /g' )"
|
@echo -e "jar files $(shell echo ${JAR_FILES} | sed 's/ /\\n /g' )"
|
||||||
@echo "xpi files ${XPI_FILES}"
|
@echo "xpi files ${XPI_FILES}"
|
||||||
|
|
||||||
doc: ${DOC_FILES}
|
.PHONY: check-asciidoc
|
||||||
|
doc: check-asciidoc ${DOC_FILES}
|
||||||
xpi: ${XPI}
|
xpi: ${XPI}
|
||||||
jar: ${JAR}
|
jar: ${JAR}
|
||||||
|
|
||||||
@@ -104,6 +105,10 @@ $(JAR): doc
|
|||||||
|
|
||||||
#### doc
|
#### doc
|
||||||
|
|
||||||
|
check-asciidoc:
|
||||||
|
@asciidoc --version | awk '{ exit $$2 !~ /^8\.2\./ }' || \
|
||||||
|
echo >&2 "Warning: asciidoc versions other 8.2.x are unsupported"
|
||||||
|
|
||||||
${DOC_FILES}: %.html: %.txt $(BASE)/Makefile.common locale/en-US/asciidoc.conf
|
${DOC_FILES}: %.html: %.txt $(BASE)/Makefile.common locale/en-US/asciidoc.conf
|
||||||
@echo "DOC $@"
|
@echo "DOC $@"
|
||||||
${ASCIIDOC} --unsafe -a linkcss -a quirks! -a doctitle="$(shell basename $@)" -o $@ $<
|
${ASCIIDOC} --unsafe -a linkcss -a quirks! -a doctitle="$(shell basename $@)" -o $@ $<
|
||||||
|
|||||||
Reference in New Issue
Block a user