3 # Description: Makefile to generate mo files
7 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
18 CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po))
26 @rm -f $@ && $(GMSGFMT) --statistics -o $@ $<
32 .PHONY: all install clean
37 mkdir -p $(PURPLE_INSTALL_PO_DIR)
38 @catalogs='$(CATALOGS)'; \
39 for cat in $$catalogs; do \
40 cat=`basename $$cat`; \
41 lang=`echo $$cat | sed 's/\.gmo$$//'`; \
42 dir=$(PURPLE_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \
44 if test -r $$cat; then \
45 cp $$cat $$dir/$(PACKAGE).mo; \
46 echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
48 cp $(PURPLE_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
49 echo "installing $(PURPLE_PO_TOP)/$$cat as" \
50 "$$dir/$(PACKAGE).mo"; \