Mercurial > pidgin.yaz
annotate po/Makefile.mingw @ 9574:fd32ae5ee373
[gaim-migrate @ 10417]
A few tweaks to the file selector for IM image saving when using
gtk <2.4.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 22 Jul 2004 03:43:59 +0000 |
parents | 580070695352 |
children | 6dcfec6f2f7c |
rev | line source |
---|---|
3630 | 1 # Makefile.mingw |
2 # | |
3 # Description: Makefile to generate mo files | |
4 # | |
5 | |
6 PACKAGE = gaim | |
7 | |
3714
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
8 ## |
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
9 ## PATHS |
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
10 ## |
3630 | 11 |
12 srcdir = . | |
3714
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
13 GAIM_TOP = .. |
3630 | 14 GAIM_INSTALL_DIR = ../win32-install-dir |
15 LOCALEDIR = $(GAIM_INSTALL_DIR)/locale | |
16 GTK_BIN = ../../win32-dev/gtk_2_0/bin | |
3714
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
17 |
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
18 ## |
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
19 ## TOOLS |
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
20 ## |
380b043a4a1c
[gaim-migrate @ 3847]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
21 |
3630 | 22 GMSGFMT = $(GTK_BIN)/msgfmt |
23 | |
24 | |
25 .SUFFIXES: | |
6221
580070695352
[gaim-migrate @ 6708]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3714
diff
changeset
|
26 .SUFFIXES: .po .gmo |
3630 | 27 |
28 | |
29 ## | |
30 ## SOURCES, OBJECTS | |
31 ## | |
32 | |
6221
580070695352
[gaim-migrate @ 6708]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3714
diff
changeset
|
33 CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po)) |
3630 | 34 |
35 ## | |
36 ## RULES | |
37 ## | |
38 | |
39 .po.gmo: | |
40 rm -f $@ && $(GMSGFMT) --statistics -o $@ $< | |
41 | |
42 | |
43 ## | |
44 ## TARGETS | |
45 ## | |
46 | |
47 | |
48 all: $(CATALOGS) | |
49 | |
50 install: all | |
51 mkdir -p $(LOCALEDIR) | |
52 @catalogs='$(CATALOGS)'; \ | |
53 for cat in $$catalogs; do \ | |
54 cat=`basename $$cat`; \ | |
55 lang=`echo $$cat | sed 's/\.gmo$$//'`; \ | |
56 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \ | |
57 mkdir -p $$dir; \ | |
58 if test -r $$cat; then \ | |
59 cp $$cat $$dir/$(PACKAGE).mo; \ | |
60 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ | |
61 else \ | |
62 cp $(srcdir)/$$cat $$dir/$(PACKAGE).mo; \ | |
63 echo "installing $(srcdir)/$$cat as" \ | |
64 "$$dir/$(PACKAGE).mo"; \ | |
65 fi; \ | |
66 done | |
67 | |
68 clean: | |
6221
580070695352
[gaim-migrate @ 6708]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3714
diff
changeset
|
69 rm -f *.gmo |