view po/Makefile.mingw @ 5537:3becf79500d2

[gaim-migrate @ 5937] This is: -AIM over OSCAR use Christian's new, kick ass gaim_notify_email stuff for new mail notification. This should be good, but it's kind of a pain to test. Let me know if you have any problems -Minor fix to the translation README -2 minor changes to the doxygen of 2 major header files (this means you'll have to recompile a lot of files :-) ) -If your global proxy setting is "No Proxy" and your global proxy host is empty, but $http_proxy is set to something, gaim used to switch your global proxy setting to "HTTP." It no longer does this. This makes more sense to me. If you disagree, please let me know--this is open to debate, and what not. Also, the use of environmental proxy settings will be changed a bit in the next day or two committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 27 May 2003 03:38:52 +0000
parents 380b043a4a1c
children 580070695352
line wrap: on
line source

# Makefile.mingw
# 
# 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
MSGFMT = $(GTK_BIN)/msgfmt
XGETTEXT = $(GTK_BIN)/xgettext
MSGMERGE = $(GTK_BIN)/msgmerge


.SUFFIXES:
.SUFFIXES: .c .o .po .pot .pox .gmo .mo


##
## SOURCES, OBJECTS
##

CATALOGS =  bg.gmo cs.gmo da.gmo de.gmo es.gmo fi.gmo fr.gmo hu.gmo it.gmo ja.gmo ko.gmo nl.gmo pl.gmo ro.gmo ru.gmo sk.gmo sv.gmo zh_CN.gmo zh_TW.gmo

POTFILES = \
     		     ../plugins/docklet/docklet.c \
     		     ../plugins/chatlist.c \
		     ../plugins/gtik.c \
		     ../src/protocols/gg/gg.c \
     		     ../src/protocols/icq/gaim_icq.c \
		     ../src/protocols/irc/irc.c \
		     ../src/protocols/jabber/jabber.c \
		     ../src/protocols/msn/msn.c \
		     ../src/protocols/napster/napster.c \
		     ../src/protocols/oscar/oscar.c \
		     ../src/protocols/toc/toc.c \
		     ../src/protocols/yahoo/yahoo.c \
		     ../src/protocols/zephyr/zephyr.c \
		     ../src/about.c \
		     ../src/aim.c \
		     ../src/away.c \
		     ../src/buddy.c \
		     ../src/buddy_chat.c \
		     ../src/conversation.c \
		     ../src/dialogs.c \
		     ../src/gaimrc.c \
		     ../src/html.c \
		     ../src/module.c \
		     ../src/multi.c \
		     ../src/perl.c \
		     ../src/plugins.c \
		     ../src/prefs.c \
		     ../src/prpl.c \
		     ../src/server.c \
		     ../src/sound.c


##
## RULES
##

.pot.pox:
	$(MAKE) $(PACKAGE).pot
	$(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox

.po.mo:
	$(MSGFMT) -o $@ $<

.po.gmo:
	rm -f $@ && $(GMSGFMT) --statistics -o $@ $<


##
## TARGETS
##


all: $(CATALOGS)

$(PACKAGE).pot: $(POTFILES) POTFILES.in
	$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(GAIM_TOP) \
	  --add-comments --keyword=_ --keyword=N_ \
	  --files-from=$(srcdir)/POTFILES.in \
	&& test ! -f $(PACKAGE).po \
	   || ( rm -f $(srcdir)/$(PACKAGE).pot \
		&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )

install: all
	mkdir -p $(LOCALEDIR)
	@catalogs='$(CATALOGS)'; \
	for cat in $$catalogs; do \
	  cat=`basename $$cat`; \
	  lang=`echo $$cat | sed 's/\.gmo$$//'`; \
	  dir=$(LOCALEDIR)/$$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" \
		 "$$dir/$(PACKAGE).mo"; \
	  fi; \
	done

clean:
	rm -f *.gmo *.pot *.pox