| 20 |
|
|
| 21 |
#LANGUAGES := en ca cs de es fi fr it ja pl pt_BR pt_PT ro ru sv zh_TW |
#LANGUAGES := en ca cs de es fi fr it ja pl pt_BR pt_PT ro ru sv zh_TW |
| 22 |
LANGUAGES := en de es |
LANGUAGES := en de es |
| 23 |
|
XMLROFF_LANGS=cs ja pl ro ru vi zh_CN en |
| 24 |
|
|
| 25 |
LANGUAGES-publish := $(addsuffix -publish,$(LANGUAGES)) |
LANGUAGES-publish := $(addsuffix -publish,$(LANGUAGES)) |
| 26 |
LANGUAGES-clean := $(addsuffix -clean,$(LANGUAGES)) |
LANGUAGES-clean := $(addsuffix -clean,$(LANGUAGES)) |
| 39 |
DBK2HTML1=$(CURDIR)/txt.xsl |
DBK2HTML1=$(CURDIR)/txt.xsl |
| 40 |
DBLATEX=dblatex --style=db2latex |
DBLATEX=dblatex --style=db2latex |
| 41 |
PROFILE=$(DOCBOOK_XSL)/profiling/profile.xsl |
PROFILE=$(DOCBOOK_XSL)/profiling/profile.xsl |
| 42 |
|
XMLROFF=xmlroff --backend cairo |
| 43 |
|
|
| 44 |
# po4a stuff |
# po4a stuff |
| 45 |
UPDATEPO=po4a-updatepo --format docbook |
UPDATEPO=po4a-updatepo --format docbook |
| 104 |
cd $(LINGUA) && $(XP) -o $(manual).$(LINGUA).html/ \ |
cd $(LINGUA) && $(XP) -o $(manual).$(LINGUA).html/ \ |
| 105 |
$(DBK2HTML) $(manual).$(architecture).xml |
$(DBK2HTML) $(manual).$(architecture).xml |
| 106 |
|
|
|
# TODO: add xmlroff for the languages which dblatex cannot yet handle |
|
| 107 |
pdf: $(LINGUA)/release-notes.pdf |
pdf: $(LINGUA)/release-notes.pdf |
| 108 |
$(LINGUA)/release-notes.pdf: $(LINGUA)/$(manual).$(architecture).xml |
$(LINGUA)/release-notes.pdf: $(LINGUA)/$(manual).$(architecture).xml fo.xsl |
| 109 |
TOP=`pwd` && cd $(@D) && $(DBLATEX) --output=$(@F) $(<F) |
USE_XR=`echo " $(XMLROFF_LANGS) " | grep " $(LINGUA) "`; \ |
| 110 |
|
if [ -n "$$USE_XR" ]; then \ |
| 111 |
|
$(XMLROFF) -o $@ $< fo.xsl; \ |
| 112 |
|
else \ |
| 113 |
|
$(DBLATEX) --output=$@ $<; \ |
| 114 |
|
fi |
| 115 |
|
|
| 116 |
txt: $(LINGUA)/release-notes.txt |
txt: $(LINGUA)/release-notes.txt |
| 117 |
$(LINGUA)/release-notes.txt: $(LINGUA)/$(manual).$(architecture).xml |
$(LINGUA)/release-notes.txt: $(LINGUA)/$(manual).$(architecture).xml |