~ubuntu-branches/ubuntu/trusty/ldm/trusty-proposed

« back to all changes in this revision

Viewing changes to po/ltsp-cluster-info/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2009-12-14 11:35:12 UTC
  • mfrom: (3.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20091214113512-njyp6vwy2gtnxzrt
Tags: 2:2.0.52-1
* New upstream version: 
  - Force poweroff and reboot instead of going through init.
  - Provide a way to reboot or halt from within the session.
  - ldm-dialog:
    + Set the root cursor.
    + Do not display in taskbar.
    + Default to empty title.
    + Make the window not resizable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DOMAIN=ltsp-cluster-info
 
2
POFILES=$(wildcard *.po)
 
3
MOFILES=$(patsubst %.po,%.mo,$(POFILES))
 
4
LINGUAS=$(basename $(POFILES))
 
5
GETTEXTFILES=$(shell find ../../ltsp-cluster-info/ -type f | grep -v Makefile)
 
6
POTFILE=$(DOMAIN).pot
 
7
DESTDIR=/
 
8
 
 
9
%.mo: %.po
 
10
        msgfmt --statistics -o $@ $<
 
11
 
 
12
%.po: $(DOMAIN).pot
 
13
        msgmerge -U $*.po $(DOMAIN).pot
 
14
 
 
15
$(DOMAIN).pot: $(GETTEXTFILES)
 
16
        $(shell xgettext -L Shell -o $(DOMAIN).pot $(GETTEXTFILES))
 
17
 
 
18
update-po:
 
19
        -for lang in $(LINGUAS); do\
 
20
            msgmerge -U $$lang.po $(DOMAIN).pot; \
 
21
        done
 
22
 
 
23
install: $(MOFILES)
 
24
        -for lang in $(LINGUAS); do\
 
25
            install -d $(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/; \
 
26
            install -m 644 $$lang.mo $(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
 
27
        done
 
28
 
 
29
all: update-po $(MOFILES)
 
30
 
 
31
distclean: clean
 
32
clean:
 
33
        - rm *.mo *~
 
34
 
 
35
.PHONY: update-po check