summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorDaniel Atallah <datallah@pidgin.im>2006-08-23 21:34:43 +0000
committerDaniel Atallah <datallah@pidgin.im>2006-08-23 21:34:43 +0000
commit700744dcef31b2f42c685f279dbc9bf2987218f5 (patch)
tree54d3a577449cc06ac059ffa9c1ec23559a163f3b /po
parent83ee047bdc046d69f82070404637939a162c54ef (diff)
downloadpidgin-700744dcef31b2f42c685f279dbc9bf2987218f5.tar.gz
[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.
Diffstat (limited to 'po')
-rw-r--r--po/Makefile.mingw31
1 files changed, 7 insertions, 24 deletions
diff --git a/po/Makefile.mingw b/po/Makefile.mingw
index 42f65a220e..5c10e1acc0 100644
--- a/po/Makefile.mingw
+++ b/po/Makefile.mingw
@@ -3,29 +3,14 @@
# Description: Makefile to generate mo files
#
-PACKAGE = gaim
-
-##
-## PATHS
-##
-
-srcdir = .
-GAIM_TOP = ..
-GAIM_INSTALL_DIR = ../win32-install-dir
-LOCALEDIR = $(GAIM_INSTALL_DIR)/locale
-GTK_BIN = ../../win32-dev/gtk_2_0/bin
-
-##
-## TOOLS
-##
-
-GMSGFMT := $(GTK_BIN)/msgfmt
+GAIM_TOP := ..
+include $(GAIM_TOP)/libgaim/win32/global.mak
+PACKAGE = gaim
.SUFFIXES:
.SUFFIXES: .po .gmo
-
##
## SOURCES, OBJECTS
##
@@ -39,28 +24,26 @@ CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po))
.po.gmo:
rm -f $@ && $(GMSGFMT) --statistics -o $@ $<
-
##
## TARGETS
##
-
all: $(CATALOGS)
install: all
- mkdir -p $(LOCALEDIR)
+ mkdir -p $(GAIM_INSTALL_PO_DIR)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
- dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
+ dir=$(GAIM_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \
mkdir -p $$dir; \
if test -r $$cat; then \
cp $$cat $$dir/$(PACKAGE).mo; \
echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
else \
- cp $(srcdir)/$$cat $$dir/$(PACKAGE).mo; \
- echo "installing $(srcdir)/$$cat as" \
+ cp $(GAIM_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
+ echo "installing $(GAIM_PO_TOP)/$$cat as" \
"$$dir/$(PACKAGE).mo"; \
fi; \
done