~ubuntu-branches/ubuntu/saucy/gperiodic/saucy

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-05-13 20:46:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040513204609-2ymqncvzfrqx8a7i
Tags: 2.0.7-4
Removed the DEPRECATED flags to build fine with GTK+2.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for locale directory
 
2
 
 
3
PACKAGE ?= gperiodic
 
4
CWD = po
 
5
MSGFMT = msgfmt
 
6
SUB_DIRS = 
 
7
FILES_PO:=$(wildcard *.po)
 
8
FILES_MO:=$(FILES_PO:.po=.mo)
 
9
datadir ?= /usr/share
 
10
 
 
11
LOCALEDIR ?= $(datadir)/locale
 
12
MSGFMT_OPT ?= -f -v -o
 
13
 
 
14
ifeq ($(enable_nls),1)
 
15
all: mo-files
 
16
 
 
17
mo-files: $(FILES_MO)
 
18
 
 
19
install: 
 
20
        $(MAKE) all
 
21
        for f in $(FILES_MO) ; do mkdir -p \
 
22
                $(INSTALL_PREFIX)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES ; \
 
23
                cp $$f $(INSTALL_PREFIX)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(PACKAGE).mo ; done
 
24
 
 
25
%.mo: %.po
 
26
        $(MSGFMT) $(MSGFMT_OPT) $@ $<
 
27
 
 
28
else
 
29
 
 
30
all:
 
31
 
 
32
install:
 
33
 
 
34
endif
 
35
 
 
36
clean:
 
37
        $(RM) $(FILES_MO)
 
38