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