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

More doc Makefile convenience edits.

This commit is contained in:
Ted Pavlic
2009-01-07 12:24:51 -05:00
parent 3beb76a4b6
commit 653ff0fb72
3 changed files with 30 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ BASE = $(TOP)/../common
DOC_SRC_FILES = $(wildcard locale/*/*.txt)
DOC_FILES = ${DOC_SRC_FILES:%.txt=%.html}
DOC_DEPS = $(wildcard locale/*/asciidoc.conf)
MAKE_JAR = VERSION="$(VERSION)" DATE="$(BUILD_DATE)" sh $(BASE)/make_jar.sh
@@ -106,12 +107,12 @@ $(JAR): doc
#### doc
check-asciidoc:
@asciidoc --version | awk '{ exit $$2 !~ /^8\.2\./ }' || \
@$(ASCIIDOC) --version | awk '{ exit $$2 !~ /^8\.2\./ }' || \
echo >&2 "Warning: asciidoc versions other than 8.2.x are unsupported"
${DOC_FILES}: %.html: %.txt $(BASE)/Makefile.common locale/en-US/asciidoc.conf
${DOC_FILES}: %.html: %.txt $(BASE)/Makefile.common $(DOC_DEPS)
@echo "DOC $@"
${ASCIIDOC} --unsafe -a linkcss -a quirks! -a doctitle="$(shell basename $@)" -o $@ $<
$(ASCIIDOC) --unsafe -a linkcss -a quirks! -a doctitle="$(shell basename $@)" -o $@ $<
T2T = $(wildcard locale/*/*.t2t)
t2t: $(T2T:%.t2t=%.xhtml)