~wattazoum/apport/trac-crashdb

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Oumar Aziz Ouattara (alias wattazoum)
  • Date: 2009-10-17 08:27:21 UTC
  • mfrom: (1352.1.275 trunk)
  • Revision ID: wattazoum@gmail.com-20091017082721-qi7n3amvy5ybytni
* merge with official branch.
* update the crashDB documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include Makevars
2
 
GETTEXT_PACKAGE=$(DOMAIN)
3
 
PO_FILES := $(wildcard *.po)
4
 
CONTACT=martin.pitt@ubuntu.com
5
 
top_srcdir = ..
6
 
 
7
 
all: $(DOMAIN).pot
8
 
 
9
 
clean:
10
 
        rm -rf mo/
11
 
        rm -f $(DOMAIN).pot
12
 
 
13
 
# update the pot
14
 
$(DOMAIN).pot:
15
 
        # we need fake .py files, since current intltool-update
16
 
        # currently does not understand a thing like [type: python]
17
 
        ln -s apport-gtk $(top_srcdir)/gtk/apport-gtk.py
18
 
        ln -s apport-qt $(top_srcdir)/qt4/apport-qt.py
19
 
        ln -s apport-cli $(top_srcdir)/cli/apport-cli.py
20
 
        XGETTEXT_ARGS='--msgid-bugs-address=$(CONTACT)' intltool-update -p --verbose
21
 
        rm $(top_srcdir)/gtk/apport-gtk.py $(top_srcdir)/qt4/apport-qt.py $(top_srcdir)/cli/apport-cli.py
22
 
 
23
 
# merge the new stuff into the po files
24
 
merge-po: $(PO_FILES) $(DOMAIN.pot)
25
 
        # we need fake .py files, since current intltool-update
26
 
        # currently does not understand a thing like [type: python]
27
 
        ln -s apport-gtk $(top_srcdir)/gtk/apport-gtk.py
28
 
        ln -s apport-qt $(top_srcdir)/qt4/apport-qt.py
29
 
        ln -s apport-cli $(top_srcdir)/cli/apport-cli.py
30
 
        XGETTEXT_ARGS='--msgid-bugs-address=$(CONTACT)' intltool-update -r
31
 
        rm $(top_srcdir)/gtk/apport-gtk.py $(top_srcdir)/qt4/apport-qt.py $(top_srcdir)/cli/apport-cli.py
32
 
 
33
 
# create mo from the pos
34
 
%.mo : %.po
35
 
        mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/ 
36
 
        msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo 
37
 
 
38
 
# generate all *.mo files
39
 
build-mo: $(patsubst %.po,%.mo,$(wildcard *.po))