Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/po/Makefile.mingw Wed Aug 23 18:50:46 2006 +0000 +++ b/po/Makefile.mingw Wed Aug 23 21:34:43 2006 +0000 @@ -3,29 +3,14 @@ # Description: Makefile to generate mo files # -PACKAGE = gaim - -## -## PATHS -## +GAIM_TOP := .. +include $(GAIM_TOP)/libgaim/win32/global.mak -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 - +PACKAGE = gaim .SUFFIXES: .SUFFIXES: .po .gmo - ## ## SOURCES, OBJECTS ## @@ -39,28 +24,26 @@ .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