Mercurial > pidgin
annotate po/Makefile.mingw @ 14485:c02ef8dd4416
[gaim-migrate @ 17204]
Doxygen comment fix
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 09 Sep 2006 20:40:12 +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 |