summaryrefslogtreecommitdiffstats
path: root/poxml/Makefile.am
blob: b1d41955e7e778e48b1b69899660102cf5d10c46 (plain)
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
40
41
42
43
44
45
46
47
48

bin_PROGRAMS = split2po xml2pot po2xml swappo transxx

INCLUDES = -I$(srcdir)/antlr $(all_includes)
KDE_CXXFLAGS = $(USE_EXCEPTIONS) 

SUBDIRS = antlr

split2po_SOURCES = split.cpp parser.cpp
split2po_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
split2po_LDADD = $(LIB_TQT)

xml2pot_SOURCES = xml2pot.cpp parser.cpp
xml2pot_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
xml2pot_LDADD = $(LIB_TQT)

po2xml_SOURCES = GettextLexer.cpp GettextParser.cpp po2xml.cpp parser.cpp
po2xml_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
po2xml_LDADD = antlr/src/libantlr.la $(LIB_TQT)

swappo_SOURCES = GettextLexer.cpp GettextParser.cpp swappo.cpp parser.cpp
swappo_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
swappo_LDADD = antlr/src/libantlr.la $(LIB_TQT)

transxx_SOURCES = GettextLexer.cpp GettextParser.cpp transxx.cpp parser.cpp
transxx_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
transxx_LDADD = antlr/src/libantlr.la $(LIB_TQT)

parser:
	cd $(srcdir) &&	java antlr.Tool gettext.g

SUFFIXES = .pot .po .xml .txml

lauri.pot: xml2pot lauri.xml
	checkXML $(srcdir)/lauri.xml
	./xml2pot $(srcdir)/lauri.xml > lauri.pot
	msgmerge -o lauri.pot lauri.pot lauri.pot 

$(srcdir)/lauri.po: lauri.pot
	msgmerge -o $(srcdir)/lauri.po $(srcdir)/lauri.po lauri.pot 
	msgfmt --statistics $(srcdir)/lauri.po -o /dev/null

lauri_de.xml: po2xml $(srcdir)/lauri.po $(srcdir)/lauri.xml
	./po2xml $(srcdir)/lauri.xml $(srcdir)/lauri.po | \
	sed -e "s,<!ENTITY % English,<!ENTITY % German," > lauri_de.xml

test: lauri_de.xml
	checkXML lauri_de.xml