Mercurial > pidgin.yaz
comparison po/Makefile.mingw @ 16177:d88f0f320c9b
merge of '07fc4db9a3c2c12596e0354b8e7959aa847f966b'
and '2e6d324c725b3e6a2c803589bca3f0ac9b9790bf'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 16 Apr 2007 00:44:33 +0000 |
parents | ded8da3de5f8 |
children | aaaff38e144f |
comparison
equal
deleted
inserted
replaced
14940:2e3eba412412 | 16177:d88f0f320c9b |
---|---|
1 # Makefile.mingw | 1 # Makefile.mingw |
2 # | 2 # |
3 # Description: Makefile to generate mo files | 3 # Description: Makefile to generate mo files |
4 # | 4 # |
5 | 5 |
6 PACKAGE = gaim | 6 PIDGIN_TREE_TOP := .. |
7 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak | |
7 | 8 |
8 ## | 9 PACKAGE = pidgin |
9 ## PATHS | |
10 ## | |
11 | |
12 srcdir = . | |
13 GAIM_TOP = .. | |
14 GAIM_INSTALL_DIR = ../win32-install-dir | |
15 LOCALEDIR = $(GAIM_INSTALL_DIR)/locale | |
16 GTK_BIN = ../../win32-dev/gtk_2_0/bin | |
17 | |
18 ## | |
19 ## TOOLS | |
20 ## | |
21 | |
22 GMSGFMT := $(GTK_BIN)/msgfmt | |
23 | |
24 | 10 |
25 .SUFFIXES: | 11 .SUFFIXES: |
26 .SUFFIXES: .po .gmo | 12 .SUFFIXES: .po .gmo |
27 | |
28 | 13 |
29 ## | 14 ## |
30 ## SOURCES, OBJECTS | 15 ## SOURCES, OBJECTS |
31 ## | 16 ## |
32 | 17 |
37 ## | 22 ## |
38 | 23 |
39 .po.gmo: | 24 .po.gmo: |
40 rm -f $@ && $(GMSGFMT) --statistics -o $@ $< | 25 rm -f $@ && $(GMSGFMT) --statistics -o $@ $< |
41 | 26 |
42 | |
43 ## | 27 ## |
44 ## TARGETS | 28 ## TARGETS |
45 ## | 29 ## |
46 | 30 |
31 .PHONY: all install clean | |
47 | 32 |
48 all: $(CATALOGS) | 33 all: $(CATALOGS) |
49 | 34 |
50 install: all | 35 install: all |
51 mkdir -p $(LOCALEDIR) | 36 mkdir -p $(PURPLE_INSTALL_PO_DIR) |
52 @catalogs='$(CATALOGS)'; \ | 37 @catalogs='$(CATALOGS)'; \ |
53 for cat in $$catalogs; do \ | 38 for cat in $$catalogs; do \ |
54 cat=`basename $$cat`; \ | 39 cat=`basename $$cat`; \ |
55 lang=`echo $$cat | sed 's/\.gmo$$//'`; \ | 40 lang=`echo $$cat | sed 's/\.gmo$$//'`; \ |
56 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \ | 41 dir=$(PURPLE_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \ |
57 mkdir -p $$dir; \ | 42 mkdir -p $$dir; \ |
58 if test -r $$cat; then \ | 43 if test -r $$cat; then \ |
59 cp $$cat $$dir/$(PACKAGE).mo; \ | 44 cp $$cat $$dir/$(PACKAGE).mo; \ |
60 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ | 45 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ |
61 else \ | 46 else \ |
62 cp $(srcdir)/$$cat $$dir/$(PACKAGE).mo; \ | 47 cp $(PURPLE_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \ |
63 echo "installing $(srcdir)/$$cat as" \ | 48 echo "installing $(PURPLE_PO_TOP)/$$cat as" \ |
64 "$$dir/$(PACKAGE).mo"; \ | 49 "$$dir/$(PACKAGE).mo"; \ |
65 fi; \ | 50 fi; \ |
66 done | 51 done |
67 | 52 |
68 clean: | 53 clean: |