~ubuntu-core-dev/ubuntu/wily/apport/ubuntu

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: martin at piware
  • Date: 2006-07-27 15:04:29 UTC
  • Revision ID: martin@piware.de-20060727150429-9a5d0ac321f531ed
gtk: i18ned

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
DOMAIN=apport
 
3
PO_FILES := $(wildcard *.po)
 
4
CONTACT=martin.pitt@ubuntu.com
 
5
 
 
6
all: update-po
 
7
 
 
8
clean:
 
9
        rm -rf mo/
 
10
        rm -f $(DOMAIN).pot
 
11
 
 
12
# update the pot
 
13
$(DOMAIN).pot:
 
14
        XGETTEXT_ARGS=--msgid-bugs-address=$(CONTACT) intltool-update -p -g $(DOMAIN)
 
15
 
 
16
# merge the new stuff into the po files
 
17
merge-po: $(PO_FILES)
 
18
        XGETTEXT_ARGS=--msgid-bugs-address=$(CONTACT) intltool-update -r -g $(DOMAIN)
 
19
 
 
20
# create mo from the pos
 
21
%.mo : %.po
 
22
        mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/ 
 
23
        msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo