~ubuntu-branches/ubuntu/trusty/openerp-client/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-01-09 18:18:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090109181800-p6t4lx2fbr0q3562
Tags: 5.0.0~rc3-1
* Merging upstream version 5.0.0~rc3.
* Using quilt rather than dpatch.
* Updating menu file.
* Updating year in copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LANG=fr
 
2
PYTHON_FILES=$(shell find -name "*py")
 
3
PYTHONC_FILES=$(shell find -name "*pyc")
 
4
APP=openerp-client
 
5
LANGS=$(shell for i in `find bin/po -name "*.po"`; do basename $$i | cut -d'.' -f1; done;)
 
6
 
 
7
all:
 
8
 
 
9
clean:
 
10
        rm -f bin/*bak $(PYTHONC_FILES)
 
11
        rm -f bin/openerp.gladep
 
12
 
 
13
translate_get:
 
14
        xgettext -k_ -kN_ -o bin/po/$(APP).pot $(PYTHON_FILES) bin/openerp.glade bin/win_error.glade
 
15
 
 
16
translate_set2:
 
17
        for i in $(LANG); do msgfmt bin/po/$$i.po -o bin/share/locale/$$i/LC_MESSAGES/$(APP).mo; done;
 
18
 
 
19
translate_set:
 
20
        for i in $(LANGS); do msgfmt bin/po/$$i.po -o bin/po/$$i/LC_MESSAGES/$(APP).mo; done;
 
21
 
 
22
merge:
 
23
        for i in $(LANGS); do msgmerge bin/po/$$i.po bin/po/$(APP).pot -o bin/po/$$i.po --strict; done;
 
24
 
 
25
test:
 
26
        echo $(LANGS)
 
27