l10n: change translation URLs to transifex.com
[siplcs.git] / po / Makefile.mingw
blobc39f4edea76cf9a47843893276ec032c1030d222
1 # Makefile.mingw
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
11 PACKAGE = pidgin-sipe
13 .SUFFIXES:
14 .SUFFIXES: .po .gmo
17 ## SOURCES, OBJECTS
20 CATALOGS = $(patsubst %.po,%.gmo,$(wildcard *.po))
23 ## RULES
26 .po.gmo:
27         rm -f $@ && $(GMSGFMT) --statistics -o $@ $<
30 ## TARGETS
33 .PHONY: all install clean
35 all: $(CATALOGS)
37 install: all
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; \
44           mkdir -p $$dir; \
45           if test -r $$cat; then \
46             cp $$cat $$dir/$(PACKAGE).mo; \
47             echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
48           else \
49             cp $(PURPLE_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
50             echo "installing $(PURPLE_PO_TOP)/$$cat as" \
51                  "$$dir/$(PACKAGE).mo"; \
52           fi; \
53         done
55 clean:
56         rm -f *.gmo