comparison po/Makefile.mingw @ 16039:ded8da3de5f8

This should get all the Win32 Makefiles in line with the names Pidgin and Purple. I tried to separate PIDGIN and PURPLE values as much as a could to make it easier to divide them later if that's ever desired.
author Kevin Stange <kevin@simguy.net>
date Tue, 10 Apr 2007 06:19:29 +0000
parents e04c98c1bce9
children aaaff38e144f
comparison
equal deleted inserted replaced
16037:8f62c4177e0c 16039:ded8da3de5f8
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 := .. 6 PIDGIN_TREE_TOP := ..
7 include $(GAIM_TOP)/libpurple/win32/global.mak 7 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
8 8
9 PACKAGE = pidgin 9 PACKAGE = pidgin
10 10
11 .SUFFIXES: 11 .SUFFIXES:
12 .SUFFIXES: .po .gmo 12 .SUFFIXES: .po .gmo
31 .PHONY: all install clean 31 .PHONY: all install clean
32 32
33 all: $(CATALOGS) 33 all: $(CATALOGS)
34 34
35 install: all 35 install: all
36 mkdir -p $(GAIM_INSTALL_PO_DIR) 36 mkdir -p $(PURPLE_INSTALL_PO_DIR)
37 @catalogs='$(CATALOGS)'; \ 37 @catalogs='$(CATALOGS)'; \
38 for cat in $$catalogs; do \ 38 for cat in $$catalogs; do \
39 cat=`basename $$cat`; \ 39 cat=`basename $$cat`; \
40 lang=`echo $$cat | sed 's/\.gmo$$//'`; \ 40 lang=`echo $$cat | sed 's/\.gmo$$//'`; \
41 dir=$(GAIM_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \ 41 dir=$(PURPLE_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \
42 mkdir -p $$dir; \ 42 mkdir -p $$dir; \
43 if test -r $$cat; then \ 43 if test -r $$cat; then \
44 cp $$cat $$dir/$(PACKAGE).mo; \ 44 cp $$cat $$dir/$(PACKAGE).mo; \
45 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ 45 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
46 else \ 46 else \
47 cp $(GAIM_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \ 47 cp $(PURPLE_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
48 echo "installing $(GAIM_PO_TOP)/$$cat as" \ 48 echo "installing $(PURPLE_PO_TOP)/$$cat as" \
49 "$$dir/$(PACKAGE).mo"; \ 49 "$$dir/$(PACKAGE).mo"; \
50 fi; \ 50 fi; \
51 done 51 done
52 52
53 clean: 53 clean: