~ubuntu-branches/ubuntu/precise/hime/precise

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../config.mak
 
2
 
 
3
.SUFFIXES: .po .gmo
 
4
 
 
5
.po.gmo:
 
6
        file=`echo $* | sed 's,.*/,,'`.gmo \
 
7
                && rm -f $$file && msgfmt -o $$file $<
 
8
 
 
9
all: en_US.gmo zh_CN.gmo
 
10
 
 
11
hime.pot:
 
12
        xgettext --from-code=UTF-8 --keyword=_ --keyword=N_ -o $@ ../*/*.c ../src/*/*.c*
 
13
 
 
14
update-po: hime.pot
 
15
        msgmerge en_US.po hime.pot > en_US.new.po
 
16
        msgmerge zh_CN.po hime.pot > zh_CN.new.po
 
17
        mv en_US.new.po en_US.po
 
18
        mv zh_CN.new.po zh_CN.po
 
19
 
 
20
install:
 
21
        install -d $(datadir)/locale/en_US/LC_MESSAGES
 
22
        install -d $(datadir)/locale/zh_CN/LC_MESSAGES
 
23
        install -m 644 en_US.gmo $(datadir)/locale/en_US/LC_MESSAGES/hime.mo
 
24
        install -m 644 zh_CN.gmo $(datadir)/locale/zh_CN/LC_MESSAGES/hime.mo
 
25
 
 
26
clean:
 
27
        rm -f ./hime.pot *.gmo *.new.po