-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (27 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DITAOT_VER=1.5.4
DITAOT_URL='http://downloads.sourceforge.net/project/dita-ot/DITA-OT%20Stable%20Release/DITA%20Open%20Toolkit%20${DITAOT_VER}/DITA-OT1.5.4_full_easy_install_bin.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdita-ot%2Ffiles%2FDITA-OT%2520Stable%2520Release%2F&ts=1288886576&use_mirror=ovh'
DITA_HOME=`pwd`/dita
CLASSPATH="${DITA_HOME}/lib:${DITA_HOME}/lib/dost.jar:${DITA_HOME}/lib/resolver.jar:${DITA_HOME}/lib/icu4j.jar:${DITA_HOME}/lib/saxon/saxon9.jar:${DITA_HOME}/lib/saxon/saxon9-dom.jar:${DITA_HOME}/lib/saxon/saxon9-dom4j.jar:${DITA_HOME}/lib/saxon/saxon9-jdom.jar:${DITA_HOME}/lib/saxon/saxon9-s9api.jar:${DITA_HOME}/lib/saxon/saxon9-sql.jar:${DITA_HOME}/lib/saxon/saxon9-xom.jar:${DITA_HOME}/lib/saxon/saxon9-xpath.jar:${DITA_HOME}/lib/saxon/saxon9-xqj.jar:${DITA_HOME}/tools/ant/lib:${DITA_HOME}/tools/ant/lib/xercesImpl.jar:${DITA_HOME}/tools/ant/lib/xml-apis.jar:${DITA_HOME}/lib/saxon"
export ANT_OPTS
export CLASSPATH
all: en fr
fr: dita
./dita/tools/ant/bin/ant -Dlang=fr -f build/build.xml
cp build/fr/monitoring.pdf monitoring-fr.pdf
en: dita
./dita/tools/ant/bin/ant -Dlang=en -f build/build.xml
cp build/en/monitoring.pdf monitoring-en.pdf
de: createEmpty dita
./dita/tools/ant/bin/ant -Dlang=de -f build/build.xml
cp build/de/monitoring.pdf monitoring-de.pdf
dita.tar.gz:
wget -O dita.tar.gz.part ${DITAOT_URL}
mv dita.tar.gz.part dita.tar.gz
dita: dita.tar.gz
tar xfz dita.tar.gz
mv DITA-OT${DITAOT_VER} dita
clean:
rm -rf build/fr build/de build/en build/temp dita.tar.gz dita
createEmpty:
perl tools/createEmptyDitaFile.pl
.PHONY: fr de en createEmpty