| 99 |
ifdef LINGUA |
ifdef LINGUA |
| 100 |
html: $(LINGUA)/$(manual).$(LINGUA).html/index.html |
html: $(LINGUA)/$(manual).$(LINGUA).html/index.html |
| 101 |
$(LINGUA)/$(manual).$(LINGUA).html/index.html: \ |
$(LINGUA)/$(manual).$(LINGUA).html/index.html: \ |
| 102 |
$(LINGUA)/$(manual).$(architecture).xml |
$(LINGUA)/$(manual).$(architecture).xml html.xsl |
| 103 |
mkdir -p $(LINGUA)/$(manual).$(LINGUA).html |
mkdir -p $(LINGUA)/$(manual).$(LINGUA).html |
| 104 |
cd $(LINGUA) && $(XP) -o $(manual).$(LINGUA).html/ \ |
cd $(LINGUA) && $(XP) -o $(manual).$(LINGUA).html/ \ |
| 105 |
$(DBK2HTML) $(manual).$(architecture).xml |
$(DBK2HTML) $(manual).$(architecture).xml |
| 114 |
fi |
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 txt.xsl |
| 118 |
$(XP) $(DBK2HTML1) $< \ |
$(XP) $(DBK2HTML1) $< \ |
| 119 |
| w3m -cols 70 -dump -no-graph -T text/html > $@ |
| w3m -cols 70 -dump -no-graph -T text/html > $@ |
| 120 |
|
|
| 121 |
# profiling for architecture, needed by all output formats |
# profiling for architecture, needed by all output formats |
| 122 |
$(LINGUA)/$(manual).$(architecture).xml: \ |
$(LINGUA)/$(manual).$(architecture).xml: \ |
| 123 |
$(patsubst en/%,$(LINGUA)/%,$(SOURCES)) \ |
$(patsubst en/%,$(LINGUA)/%,$(SOURCES)) |
|
$(LINGUA)/dynamic.ent $(LINGUA)/release-notes.ent txt.xsl |
|
| 124 |
$(XP) --stringparam profile.arch $(architecture) $(PROFILE) \ |
$(XP) --stringparam profile.arch $(architecture) $(PROFILE) \ |
| 125 |
$(@D)/$(manual).dbk > $@ |
$(@D)/$(manual).dbk > $@ |
| 126 |
endif |
endif |
| 135 |
else |
else |
| 136 |
$(LINGUA)/%.dbk: en/%.dbk |
$(LINGUA)/%.dbk: en/%.dbk |
| 137 |
$(TRANSLATE) --master $< --po $(@:.dbk=.po) --localized $@ |
$(TRANSLATE) --master $< --po $(@:.dbk=.po) --localized $@ |
|
|
|
|
$(LINGUA)/%.ent: %.ent |
|
|
cd $(@D) && ln -sf ../$(@F) . |
|
| 138 |
endif |
endif |
| 139 |
|
|
| 140 |
ifdef LINGUA |
ifdef LINGUA |
| 144 |
echo $(UPDATEPO) --master $< --po $@ |
echo $(UPDATEPO) --master $< --po $@ |
| 145 |
endif |
endif |
| 146 |
|
|
| 147 |
|
tidypo: |
| 148 |
|
for po in $(wildcard */*.po); do \ |
| 149 |
|
msgcat $$po > $$po.tmp && mv $$po.tmp $$po; \ |
| 150 |
|
done |
| 151 |
|
|
| 152 |
ifndef LINGUA |
ifndef LINGUA |
| 153 |
%: |
%: |
| 154 |
for l in $(LANGUAGES); do \ |
for l in $(LANGUAGES); do \ |