view po/Makefile.mingw @ 28319:32ef0358b469
propagate from branch 'im.pidgin.pidgin' (head 7c0f8ebeda0f59bd50e8e1692886616f302badcf)
to branch 'im.pidgin.cpw.darkrain42.2.6.1' (head 7313bb3a50bfb81413f4fb007c26df5836a97397)
author |
Paul Aurich <paul@darkrain42.org> |
date |
Wed, 22 Jul 2009 04:15:09 +0000 (2009-07-22) |
parents |
ded8da3de5f8 |
children |
aaaff38e144f |
line source
# Makefile.mingw
#
# Description: Makefile to generate mo files
#
PIDGIN_TREE_TOP := ..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
PACKAGE = pidgin
.SUFFIXES:
.SUFFIXES: .po .gmo
##
## SOURCES, OBJECTS
##
CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po))
##
## RULES
##
.po.gmo:
rm -f $@ && $(GMSGFMT) --statistics -o $@ $<
##
## TARGETS
##
.PHONY: all install clean
all: $(CATALOGS)
install: all
mkdir -p $(PURPLE_INSTALL_PO_DIR)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(PURPLE_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 $(PURPLE_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
echo "installing $(PURPLE_PO_TOP)/$$cat as" \
"$$dir/$(PACKAGE).mo"; \
fi; \
done
clean:
rm -f *.gmo