<?xml version="1.0" encoding="utf-8"?>

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<!-- this file contains language specific targets and will be included    -->
<!-- into build.xml. IT IS AUTOGENERATED. DO NOT TOUCH!                   -->
<!-- ==================================================================== -->
<project name="lang-targets">

<target description="- builds all HTML files and nroff man pages" name="all" depends="de, en, es, fr, ja, ko, pt-br, ru, tr"/>
<target description="- builds all zip download packages" name="zip-all" depends="zip-de, zip-en, zip-es, zip-fr, zip-ja, zip-ko, zip-pt-br, zip-ru, zip-tr"/>
<target description="- builds all war download packages" name="war-all" depends="war-de, war-en, war-es, war-fr, war-ja, war-ko, war-pt-br, war-ru, war-tr"/>

<!-- German                                                               -->
<!-- ==================================================================== -->
<property value=".xml.de" name="inputext.de"/>
<property value=".html.de" name="outputext.de"/>

<target description="- builds German HTML files" name="de">
    <html.generic lang="de"/>
</target>
<target unless="-off.de.done" depends="metafiles" name="-off-de">
    <dependencies.offline dir="_off" style="zip" lang="de"/>
    <offline.generic dir="_off" style="zip" lang="de"/>
    <property value="yes" name="-off.de.done"/>
</target>
<target description="- builds the German zipped download package" depends="-off-de" name="zip-de">
    <zip.generic lang="de"/>
</target>
<target description="- builds the German Konqueror Web Archive" depends="-off-de" name="war-de">
    <war.generic lang="de"/>
</target>
<target description="- builds the German CHM file" name="chm-de">
    <chm.generic lang="de"/>
</target>

<!-- English                                                              -->
<!-- ==================================================================== -->
<property value=".xml" name="inputext.en"/>
<property value=".html.en" name="outputext.en"/>

<target description="- builds English HTML files" name="en">
    <html.generic lang="en"/>
    <runtarget target="man-en"/>
</target>
<target unless="-off.en.done" depends="metafiles" name="-off-en">
    <dependencies.offline dir="_off" style="zip" lang="en"/>
    <offline.generic dir="_off" style="zip" lang="en"/>
    <property value="yes" name="-off.en.done"/>
</target>
<target description="- builds the English zipped download package" depends="-off-en" name="zip-en">
    <zip.generic lang="en"/>
</target>
<target description="- builds the English Konqueror Web Archive" depends="-off-en" name="war-en">
    <war.generic lang="en"/>
</target>
<target description="- builds the English CHM file" name="chm-en">
    <chm.generic lang="en"/>
</target>
<target description="- builds the English nroff files" name="man-en">
    <nroff.generic lang="en"/>
</target>
<target description="- builds the English latex file" name="latex-en">
    <latex.generic lang="en"/>
</target>

<!-- Spanish                                                              -->
<!-- ==================================================================== -->
<property value=".xml.es" name="inputext.es"/>
<property value=".html.es" name="outputext.es"/>

<target description="- builds Spanish HTML files" name="es">
    <html.generic lang="es"/>
</target>
<target unless="-off.es.done" depends="metafiles" name="-off-es">
    <dependencies.offline dir="_off" style="zip" lang="es"/>
    <offline.generic dir="_off" style="zip" lang="es"/>
    <property value="yes" name="-off.es.done"/>
</target>
<target description="- builds the Spanish zipped download package" depends="-off-es" name="zip-es">
    <zip.generic lang="es"/>
</target>
<target description="- builds the Spanish Konqueror Web Archive" depends="-off-es" name="war-es">
    <war.generic lang="es"/>
</target>
<target description="- builds the Spanish CHM file" name="chm-es">
    <chm.generic lang="es"/>
</target>

<!-- French                                                               -->
<!-- ==================================================================== -->
<property value=".xml.fr" name="inputext.fr"/>
<property value=".html.fr" name="outputext.fr"/>

<target description="- builds French HTML files" name="fr">
    <html.generic lang="fr"/>
</target>
<target unless="-off.fr.done" depends="metafiles" name="-off-fr">
    <dependencies.offline dir="_off" style="zip" lang="fr"/>
    <offline.generic dir="_off" style="zip" lang="fr"/>
    <property value="yes" name="-off.fr.done"/>
</target>
<target description="- builds the French zipped download package" depends="-off-fr" name="zip-fr">
    <zip.generic lang="fr"/>
</target>
<target description="- builds the French Konqueror Web Archive" depends="-off-fr" name="war-fr">
    <war.generic lang="fr"/>
</target>

<!-- Japanese                                                             -->
<!-- ==================================================================== -->
<property value=".xml.ja" name="inputext.ja"/>
<property value=".html.ja.utf8" name="outputext.ja"/>

<target description="- builds Japanese HTML files" name="ja">
    <html.generic lang="ja"/>
</target>
<target unless="-off.ja.done" depends="metafiles" name="-off-ja">
    <dependencies.offline dir="_off" style="zip" lang="ja"/>
    <offline.generic dir="_off" style="zip" lang="ja"/>
    <property value="yes" name="-off.ja.done"/>
</target>
<target description="- builds the Japanese zipped download package" depends="-off-ja" name="zip-ja">
    <zip.generic lang="ja"/>
</target>
<target description="- builds the Japanese Konqueror Web Archive" depends="-off-ja" name="war-ja">
    <war.generic lang="ja"/>
</target>
<target description="- builds the Japanese CHM file" name="chm-ja">
    <chm.generic lang="ja"/>
</target>

<!-- Korean                                                               -->
<!-- ==================================================================== -->
<property value=".xml.ko" name="inputext.ko"/>
<property value=".html.ko.euc-kr" name="outputext.ko"/>

<target description="- builds Korean HTML files" name="ko">
    <html.generic lang="ko"/>
</target>
<target unless="-off.ko.done" depends="metafiles" name="-off-ko">
    <dependencies.offline dir="_off" style="zip" lang="ko"/>
    <offline.generic dir="_off" style="zip" lang="ko"/>
    <property value="yes" name="-off.ko.done"/>
</target>
<target description="- builds the Korean zipped download package" depends="-off-ko" name="zip-ko">
    <zip.generic lang="ko"/>
</target>
<target description="- builds the Korean Konqueror Web Archive" depends="-off-ko" name="war-ko">
    <war.generic lang="ko"/>
</target>
<target description="- builds the Korean CHM file" name="chm-ko">
    <chm.generic lang="ko"/>
</target>

<!-- Portuguese                                                           -->
<!-- ==================================================================== -->
<property value=".xml.pt-br" name="inputext.pt-br"/>
<property value=".html.pt-br" name="outputext.pt-br"/>

<target description="- builds Portuguese HTML files" name="pt-br">
    <html.generic lang="pt-br"/>
</target>
<target unless="-off.pt-br.done" depends="metafiles" name="-off-pt-br">
    <dependencies.offline dir="_off" style="zip" lang="pt-br"/>
    <offline.generic dir="_off" style="zip" lang="pt-br"/>
    <property value="yes" name="-off.pt-br.done"/>
</target>
<target description="- builds the Portuguese zipped download package" depends="-off-pt-br" name="zip-pt-br">
    <zip.generic lang="pt-br"/>
</target>
<target description="- builds the Portuguese Konqueror Web Archive" depends="-off-pt-br" name="war-pt-br">
    <war.generic lang="pt-br"/>
</target>

<!-- Russian                                                              -->
<!-- ==================================================================== -->
<property value=".xml.ru" name="inputext.ru"/>
<property value=".html.ru.koi8-r" name="outputext.ru"/>

<target description="- builds Russian HTML files" name="ru">
    <html.generic lang="ru"/>
</target>
<target unless="-off.ru.done" depends="metafiles" name="-off-ru">
    <dependencies.offline dir="_off" style="zip" lang="ru"/>
    <offline.generic dir="_off" style="zip" lang="ru"/>
    <property value="yes" name="-off.ru.done"/>
</target>
<target description="- builds the Russian zipped download package" depends="-off-ru" name="zip-ru">
    <zip.generic lang="ru"/>
</target>
<target description="- builds the Russian Konqueror Web Archive" depends="-off-ru" name="war-ru">
    <war.generic lang="ru"/>
</target>

<!-- Turkish                                                              -->
<!-- ==================================================================== -->
<property value=".xml.tr" name="inputext.tr"/>
<property value=".html.tr.utf8" name="outputext.tr"/>

<target description="- builds Turkish HTML files" name="tr">
    <html.generic lang="tr"/>
</target>
<target unless="-off.tr.done" depends="metafiles" name="-off-tr">
    <dependencies.offline dir="_off" style="zip" lang="tr"/>
    <offline.generic dir="_off" style="zip" lang="tr"/>
    <property value="yes" name="-off.tr.done"/>
</target>
<target description="- builds the Turkish zipped download package" depends="-off-tr" name="zip-tr">
    <zip.generic lang="tr"/>
</target>
<target description="- builds the Turkish Konqueror Web Archive" depends="-off-tr" name="war-tr">
    <war.generic lang="tr"/>
</target>
<target description="- builds the Turkish CHM file" name="chm-tr">
    <chm.generic lang="tr"/>
</target>
<target description="- builds the Turkish nroff files" name="man-tr">
    <nroff.generic lang="tr"/>
</target>

<!-- XML validation.                                                      -->
<!-- If you get an error during transformation, this task may be useful   -->
<!-- because it mostly gives you a hint, where you forgot the </p> ;-)    -->
<!-- ==================================================================== -->
<target description="- validates all XML source files" name="validate-xml">
    <xmlvalidate warn="true" failonerror="false" lenient="false">
        <xmlcatalog refid="w3c-catalog"/>
        <fileset dir="../">
            <include name="**/*.xml.de"/>
            <include name="**/*.xml"/>
            <include name="**/*.xml.es"/>
            <include name="**/*.xml.fr"/>
            <include name="**/*.xml.ja"/>
            <include name="**/*.xml.ko"/>
            <include name="**/*.xml.pt-br"/>
            <include name="**/*.xml.ru"/>
            <include name="**/*.xml.tr"/>

            <patternset refid="excludes"/>
            <patternset refid="scratch"/>
        </fileset>
    </xmlvalidate>
</target>

</project>