Mercurial > pidgin.yaz
annotate po/Makefile.mingw @ 14416:eeca8be382a5
[gaim-migrate @ 17124]
This is a Gaim::Gtk perl module for use by gaim plugins to get access to the
gtkgaim interface functions. It isn't complete because anything dealing with
Gtk widgets themselves doesn't work yet (I need to figure out the best way to
do that). To use this a perl plugin just needs to include 'use Gaim::Gtk;'
either on top of 'use Gaim;' or instead of it.
I'm not done with this yet.
At the moment you have to 'use Gaim;' or 'use Gaim::Gtk;' which loads all the
parts, I'm planning to let you actually say 'use Gaim::Gtk::Debug;' to just
get the gtkdebug.h functions. Though 'use Gaim' would work the same way as
always.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Sat, 02 Sep 2006 05:31:10 +0000 |
parents | 8793fc8f7064 |
children | 5d03b309b482 |
rev | line source |
---|---|
3630 | 1 # Makefile.mingw |
2 # | |
3 # Description: Makefile to generate mo files | |
4 # | |
5 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
6 GAIM_TOP := .. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
7 include $(GAIM_TOP)/libgaim/win32/global.mak |
3630 | 8 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
9 PACKAGE = gaim |
3630 | 10 |
11 .SUFFIXES: | |
6221
580070695352
[gaim-migrate @ 6708]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3714
diff
changeset
|
12 .SUFFIXES: .po .gmo |
3630 | 13 |
14 ## | |
15 ## SOURCES, OBJECTS | |
16 ## | |
17 | |
6221
580070695352
[gaim-migrate @ 6708]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3714
diff
changeset
|
18 CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po)) |
3630 | 19 |
20 ## | |
21 ## RULES | |
22 ## | |
23 | |
24 .po.gmo: | |
25 rm -f $@ && $(GMSGFMT) --statistics -o $@ $< | |
26 | |
27 ## | |
28 ## TARGETS | |
29 ## | |
30 | |
31 all: $(CATALOGS) | |
32 | |
33 install: all | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
34 mkdir -p $(GAIM_INSTALL_PO_DIR) |
3630 | 35 @catalogs='$(CATALOGS)'; \ |
36 for cat in $$catalogs; do \ | |
37 cat=`basename $$cat`; \ | |
38 lang=`echo $$cat | sed 's/\.gmo$$//'`; \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
39 dir=$(GAIM_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \ |
3630 | 40 mkdir -p $$dir; \ |
41 if test -r $$cat; then \ | |
42 cp $$cat $$dir/$(PACKAGE).mo; \ | |
43 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ | |
44 else \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
45 cp $(GAIM_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10804
diff
changeset
|
46 echo "installing $(GAIM_PO_TOP)/$$cat as" \ |
3630 | 47 "$$dir/$(PACKAGE).mo"; \ |
48 fi; \ | |
49 done | |
50 | |
51 clean: | |
6221
580070695352
[gaim-migrate @ 6708]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3714
diff
changeset
|
52 rm -f *.gmo |