grim/guifications2

[gf2-migrate @ 197]
org.guifications.gf2
2006-11-27, John Bailey
7502053d0b76
[gf2-migrate @ 197]
How did I miss this one too? I'm on the trackers lists...
# Makefile.mingw
#
# Description: Makefile to generate mo files
#
GAIM_TOP = ../../../..
include $(GAIM_TOP)/libgaim/win32/global.mak
PACKAGE = guifications
.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 $(GAIM_INSTALL_PO_DIR)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(GAIM_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \
mkdir -p $$dir; \
cp $$cat $$dir/$(PACKAGE).mo; \
echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
done
clean:
rm -f *.gmo