1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 06:57:59 +01:00

Check asciidoc version on 'make doc'

This commit is contained in:
Kris Maglione
2008-12-18 00:16:49 -05:00
parent cdcfb68e3b
commit 26f362af57

View File

@@ -63,7 +63,8 @@ info:
@echo -e "jar files $(shell echo ${JAR_FILES} | sed 's/ /\\n /g' )"
@echo "xpi files ${XPI_FILES}"
doc: ${DOC_FILES}
.PHONY: check-asciidoc
doc: check-asciidoc ${DOC_FILES}
xpi: ${XPI}
jar: ${JAR}
@@ -104,6 +105,10 @@ $(JAR): 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
@echo "DOC $@"
${ASCIIDOC} --unsafe -a linkcss -a quirks! -a doctitle="$(shell basename $@)" -o $@ $<