~ubuntu-branches/ubuntu/wily/easytag/wily

« back to all changes in this revision

Viewing changes to po/Makefile.mingw

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-10-11 17:07:47 UTC
  • mto: (8.1.4 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20131011170747-uqvgtx7uyd046j7z
Tags: upstream-2.1.8
ImportĀ upstreamĀ versionĀ 2.1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile.mingw
2
 
3
 
# Description: Makefile to generate mo files
4
 
#
5
 
 
6
 
PACKAGE = easytag
7
 
 
8
 
##
9
 
## PATHS
10
 
##
11
 
 
12
 
srcdir = .
13
 
EASYTAG_TOP = ..
14
 
EASYTAG_INSTALL_DIR = ../win32-install-dir
15
 
LOCALEDIR = $(EASYTAG_INSTALL_DIR)/locale
16
 
 
17
 
##
18
 
## TOOLS
19
 
##
20
 
 
21
 
GMSGFMT := msgfmt
22
 
 
23
 
 
24
 
.SUFFIXES:
25
 
.SUFFIXES: .po .gmo
26
 
 
27
 
 
28
 
##
29
 
## SOURCES, OBJECTS
30
 
##
31
 
 
32
 
CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po))
33
 
 
34
 
##
35
 
## RULES
36
 
##
37
 
 
38
 
.po.gmo:
39
 
        rm -f $@ && $(GMSGFMT) --statistics -o $@ $<
40
 
 
41
 
 
42
 
##
43
 
## TARGETS
44
 
##
45
 
 
46
 
 
47
 
all: $(CATALOGS)
48
 
 
49
 
install: all
50
 
        mkdir -p $(LOCALEDIR)
51
 
        @catalogs='$(CATALOGS)'; \
52
 
        for cat in $$catalogs; do \
53
 
          cat=`basename $$cat`; \
54
 
          lang=`echo $$cat | sed 's/\.gmo$$//'`; \
55
 
          dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
56
 
          mkdir -p $$dir; \
57
 
          if test -r $$cat; then \
58
 
            cp $$cat $$dir/$(PACKAGE).mo; \
59
 
            echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
60
 
          else \
61
 
            cp $(srcdir)/$$cat $$dir/$(PACKAGE).mo; \
62
 
            echo "installing $(srcdir)/$$cat as" \
63
 
                 "$$dir/$(PACKAGE).mo"; \
64
 
          fi; \
65
 
        done
66
 
 
67
 
clean:
68
 
        rm -f *.gmo