comparison po/Makefile.mingw @ 14315:8793fc8f7064

[gaim-migrate @ 17008] Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving. This makes life a great deal easier for anyone who wants to build out-of-tree plugins. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 23 Aug 2006 21:34:43 +0000
parents 6dcfec6f2f7c
children 5d03b309b482
comparison
equal deleted inserted replaced
14314:8b8188fa98f4 14315:8793fc8f7064
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 GAIM_TOP := ..
7 include $(GAIM_TOP)/libgaim/win32/global.mak
8
6 PACKAGE = gaim 9 PACKAGE = gaim
7
8 ##
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
47
48 all: $(CATALOGS) 31 all: $(CATALOGS)
49 32
50 install: all 33 install: all
51 mkdir -p $(LOCALEDIR) 34 mkdir -p $(GAIM_INSTALL_PO_DIR)
52 @catalogs='$(CATALOGS)'; \ 35 @catalogs='$(CATALOGS)'; \
53 for cat in $$catalogs; do \ 36 for cat in $$catalogs; do \
54 cat=`basename $$cat`; \ 37 cat=`basename $$cat`; \
55 lang=`echo $$cat | sed 's/\.gmo$$//'`; \ 38 lang=`echo $$cat | sed 's/\.gmo$$//'`; \
56 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \ 39 dir=$(GAIM_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \
57 mkdir -p $$dir; \ 40 mkdir -p $$dir; \
58 if test -r $$cat; then \ 41 if test -r $$cat; then \
59 cp $$cat $$dir/$(PACKAGE).mo; \ 42 cp $$cat $$dir/$(PACKAGE).mo; \
60 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ 43 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
61 else \ 44 else \
62 cp $(srcdir)/$$cat $$dir/$(PACKAGE).mo; \ 45 cp $(GAIM_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
63 echo "installing $(srcdir)/$$cat as" \ 46 echo "installing $(GAIM_PO_TOP)/$$cat as" \
64 "$$dir/$(PACKAGE).mo"; \ 47 "$$dir/$(PACKAGE).mo"; \
65 fi; \ 48 fi; \
66 done 49 done
67 50
68 clean: 51 clean: