SOURCES := $(wildcard *.dbk) common.ent version.ent
FORMATS := html txt pdf
-LANGS := fr ja
+LANGS := de fr ja
TARGETS := $(foreach fmt,$(FORMATS),developers-reference.$(fmt)) \
$(foreach lng,$(LANGS), \
$(foreach fmt,$(FORMATS), \
$(lng)/developers-reference.$(fmt)))
# list of targets, that currently cannot build
-BLACKLIST := ja/developers-reference.pdf
+#BLACKLIST := ja/developers-reference.pdf
# hopefully overwritten by caller, e.g. debian/rules
VERSION=unknown
FORCE:
else
$(LINGUA)/%.dbk: %.dbk $(patsubst %.dbk,po4a/$(LINGUA)/%.po,%.dbk)
- $(TRANSLATE) -m $< -p po4a/$(@:.dbk=.po) -l $@
+ $(TRANSLATE) -m $< -p po4a/$(@:.dbk=.po) -l $@ -a ?po4a/$(@:.dbk=.add)
$(LINGUA)/common.ent: common.ent
cd $(@D) && ln -sf ../$(@F) .
$(XP) $(DBK2HTML1) $(@D)/index.dbk \
| w3m -o display_charset=UTF-8 -cols 70 -dump -no-graph -T text/html > $@
+XSLT := xslt
+
developers-reference.pdf: $(CURDIR)/developers-reference.pdf
%/developers-reference.pdf: $(addprefix %/,$(SOURCES))
- TOP=`pwd` && cd $(@D) && $(DBLATEX) index.dbk \
- && mv index.dbk.pdf $(@F)
+ $(DBLATEX) $(@D)/index.dbk \
+ --backend=xetex \
+ --xsl-user=$(XSLT)/user_param.xsl \
+ --xsl-user=$(XSLT)/xetex_param.xsl \
+ --param=lingua=$(@D) \
+ && mv $(@D)/index.dbk.pdf $@
.PHONY: pot
pot: $(patsubst %.dbk,po4a/po/%.pot,$(SOURCES))