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