]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - Makefile
First build rules.
[text-free-culture-lessig.git] / Makefile
1 #
2 # configuration here:
3 #
4
5 url = http://www.sslug.dk/~chlor/lessig/freeculture.sgml.2004-04-01.gz
6
7 path1=Dokumentasjon/BokenOmLinux
8 path2='\/Dokumentasjon\/BokenOmLinux\/'
9
10 ORIGLANG = en
11
12 name = freeculture
13 DEBIAN_EDU_DOC_TITLE=Free Culture
14 export
15
16 #include ../common/Makefile.common
17
18 DBLATEX = dblatex -T db2latex --backend=xetex --xsl-user=../common/user_param.xsl --xsl-user=../common/xetex_param.xsl -p ../common/pdf.xsl --param=lingua=zh-tw
19
20 all: pdf
21
22 update-translation: freeculture.pot
23 po4a --no-translations --msgmerge-opt --no-location po4a.cfg
24 msgcat --no-location -o $(name).pot $(name).pot
25
26 freeculture.nb.po: update-translation
27
28 freeculture.nb.xml: freeculture.nb.po freeculture.xml
29 po4a --translate-only freeculture.nb.xml po4a.cfg
30
31 pdf: freeculture.nb.pdf
32
33 freeculture.pdf: freeculture.xml
34 $(DBLATEX) $(name).xml --param=lingua=en
35
36 freeculture.nb.pdf: freeculture.nb.xml
37 $(DBLATEX) freeculture.nb.xml --param=lingua=nb
38
39 freeculture.xml:
40 GET $(url) | gunzip > freeculture.xml
41
42 freeculture.pot: freeculture.xml
43 po4a-gettextize -f docbook -m $^ > $@