grim/guifications2

Doing this so I can fix our tarball
org.guifications.gf2 gf_2_13beta7
2007-05-01, John Bailey
d9f3834d8f71
Doing this so I can fix our tarball
# Makefile.mingw
#
# Description: Makefile to generate mo files
#
GF_TOP := ..
-include $(GF_TOP)/local.mak
PIDGIN_TREE_TOP ?= ../../../..
include $(PIDGIN_TREE_TOP)/libpurple/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 $(PIDGIN_INSTALL_PO_DIR)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(PIDGIN_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