~five-letters-team/five-letters/trunk

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
all: five-letters.desktop \
     po/com.ubuntu.developer.robert-ancell.five-letters.pot \
     share/locale/de/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo \
     share/locale/fi/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo \
     share/locale/it/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo \
     share/locale/nl/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo \
     share/locale/pt/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo \
     share/locale/zh_CN/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo

QML_SOURCES = main.qml

click:
	click build --ignore=Makefile --ignore=*.pot --ignore=*.po --ignore=*.qmlproject --ignore=*.qmlproject.user --ignore=*.in --ignore=po .

five-letters.desktop: five-letters.desktop.in po/*.po
	intltool-merge --desktop-style po $< $@

po/com.ubuntu.developer.robert-ancell.five-letters.pot: $(QML_SOURCES) five-letters.desktop.in
	touch po/com.ubuntu.developer.robert-ancell.five-letters.pot
	xgettext --language=JavaScript --from-code=UTF-8 --keyword=tr --keyword=tr:1,2 --add-comments=TRANSLATORS $(QML_SOURCES) -o po/com.ubuntu.developer.robert-ancell.five-letters.pot
	intltool-extract --type=gettext/keys five-letters.desktop.in
	xgettext --keyword=N_ five-letters.desktop.in.h -j -o po/com.ubuntu.developer.robert-ancell.five-letters.pot
	rm -f five-letters.desktop.in.h

share/locale/%/LC_MESSAGES/com.ubuntu.developer.robert-ancell.five-letters.mo: po/%.po
	msgfmt -o $@ $<

clean:
	rm -f share/locale/*/*/*.mo five-letters.desktop

run:
	/usr/bin/qmlscene $@ main.qml