diff options
author | Daniel Atallah <datallah@pidgin.im> | 2006-08-23 21:34:43 +0000 |
---|---|---|
committer | Daniel Atallah <datallah@pidgin.im> | 2006-08-23 21:34:43 +0000 |
commit | 700744dcef31b2f42c685f279dbc9bf2987218f5 (patch) | |
tree | 54d3a577449cc06ac059ffa9c1ec23559a163f3b /po | |
parent | 83ee047bdc046d69f82070404637939a162c54ef (diff) | |
download | pidgin-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.mingw | 31 |
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 |