~ubuntu-branches/debian/wheezy/quodlibet/wheezy

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2009-01-30 23:55:34 UTC
  • mto: (18.1.1 squeeze) (2.1.9 sid)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090130235534-45857nfsgobw4apc
Tags: upstream-2.0
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
top_srcdir = ../
2
 
NAME = quodlibet
3
 
ALL_LINGUAS = en_GB en_CA de pl ru fr fi nl he bg gl it es pt ko lt nb \
4
 
              sk sv zh_CN hu ja zh_TW ro
5
 
PREFIX ?= /usr
6
 
PO_DIR ?= $(PREFIX)/share/locale
7
 
 
8
 
all:
9
 
 
10
 
po: $(addsuffix .mo, $(ALL_LINGUAS))
11
 
 
12
 
quodlibet.pot: POTFILES.in ../*.py ../formats/*.py ../browsers/*.py ../qltk/*.py ../plugins/*.py tag-names.py ../util/*.py ../library/*.py ../devices/*.py
13
 
        intltool-update --pot --gettext-package=$(NAME)
14
 
 
15
 
%.po: quodlibet.pot
16
 
        intltool-update --dist --gettext-package=$(NAME) $*
17
 
 
18
 
%.mo: %.po
19
 
        msgfmt -o $@ $<
20
 
 
21
 
check: $(addprefix check-, $(ALL_LINGUAS))
22
 
 
23
 
check-%: %.po
24
 
        msgfmt -c $<
25
 
 
26
 
clean:
27
 
        rm -f untitled.pot messages.mo quodlibet.gmo notexist missing
28
 
        rm -f *.mo
29
 
 
30
 
distclean: clean
31
 
        rm -f *~
32
 
 
33
 
install-po: po
34
 
        for F in $(ALL_LINGUAS); do mkdir -p $(DESTDIR)$(PO_DIR)/$$F/LC_MESSAGES && install -m 644 $$F.mo $(DESTDIR)$(PO_DIR)/$$F/LC_MESSAGES/$(NAME).mo; done
35
 
 
36
 
.PHONY: po check check-% clean mo-clean distclean install-po