mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 16:24:11 +01:00
More doc Makefile convenience edits.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
THISLOCALE=$(notdir $(shell pwd))
|
||||
THIS_LOCALE = $(notdir $(shell pwd))
|
||||
DOC_FILES = $(addsuffix .html,$(basename $(wildcard *.txt)))
|
||||
|
||||
all: *.html
|
||||
.PHONY: all doc clean distclean
|
||||
|
||||
doc: $(DOC_FILES)
|
||||
|
||||
clean:
|
||||
find . -name '*~' -exec rm -f {} \;
|
||||
|
||||
distclean: clean
|
||||
rm -f $(DOC_FILES)
|
||||
|
||||
%: %.html %.txt
|
||||
@
|
||||
|
||||
%.html: %.txt asciidoc.conf
|
||||
@make -C ../../ locale/$(THISLOCALE)/$@
|
||||
%.html: %.txt ../../../common/Makefile.common asciidoc.conf
|
||||
@make -C ../../ locale/$(THIS_LOCALE)/$@
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
THISLOCALE=$(notdir $(shell pwd))
|
||||
THIS_LOCALE = $(notdir $(shell pwd))
|
||||
DOC_FILES = $(addsuffix .html,$(basename $(wildcard *.txt)))
|
||||
|
||||
all: *.html
|
||||
.PHONY: all doc clean distclean
|
||||
|
||||
doc: $(DOC_FILES)
|
||||
|
||||
clean:
|
||||
find . -name '*~' -exec rm -f {} \;
|
||||
|
||||
distclean: clean
|
||||
rm -f $(DOC_FILES)
|
||||
|
||||
%: %.html %.txt
|
||||
@
|
||||
|
||||
%.html: %.txt asciidoc.conf
|
||||
@make -C ../../ locale/$(THISLOCALE)/$@
|
||||
%.html: %.txt ../../../common/Makefile.common asciidoc.conf
|
||||
@make -C ../../ locale/$(THIS_LOCALE)/$@
|
||||
|
||||
Reference in New Issue
Block a user