$(foreach lng,$(LANGS), \
$(foreach fmt,$(FORMATS), \
$(lng)/developers-reference.$(fmt)))
+# list of targets, that currently cannot build
+BLACKLIST := ja/developers-reference.pdf
# hopefully overwritten by caller, e.g. debian/rules
VERSION=unknown
# programs for creating output
XP=xsltproc --nonet --novalid --xinclude
XL=xmllint --nonet --noout --postvalid --xinclude
-# dblatex 0.2.8 has some problems (e.g. #465221), but we can
-# live with that for now (but: Japanese PDF seems to need
-# non-free cyberbit font.)
+# dblatex 0.2.8 has some problems (e.g. #465221 and Japanese does
+# not build)
# Alternatives:
# - docbook2pdf (seems to die on UTF-8, #431085); and
# - fop is currently in contrib, but can go to main, see #366783
# XSL files and parameters
# note: the URL is used as identifier, no HTTP is used!
DOCBOOK_XSL=http://docbook.sourceforge.net/release/xsl/current
-# one file per chapter
-DBK2HTML=--stringparam chunk.section.depth 0 \
- --stringparam section.autolabel 1 \
- --stringparam use.id.as.filename 1 \
- $(DOCBOOK_XSL)/xhtml/chunk.xsl
-# all in one file
-DBK2HTML1=--stringparam section.autolabel 1 \
- $(DOCBOOK_XSL)/xhtml/docbook.xsl
+# for HTML output
+DBK2HTML=$(PWD)/html.xsl
+# all in one file for text output
+DBK2HTML1=$(PWD)/txt.xsl
.PHONY: all
-all: $(TARGETS)
+all: $(filter-out $(BLACKLIST), $(TARGETS))
.PHONY: validate
validate: $(SOURCES)
.PHONY: clean
clean:
rm -f *.fo *.html *.pdf *.txt
- rm -rf $(LANGS)
+ for L in $(LANGS); do rm -rf `basename ./"$$L"/`; done
rm -f version.ent
rm -f `find . -name "*~" -o -name "*.bak"`
rm -f *~ *.bak .#* core