1 ## Makefile for compiling message catalogs on Win32 with cygwin
3 ## Use: make -f makefile.mingw install
5 ## To convert the clear-text message catalogs to binary form (.gmo)
6 ## files you will need msgfmt, from GNU gettext.
8 # This file is possibly included from other po directories, too. They
9 # should define their own PACKAGE and possibly INSTALLSUBDIR and
17 # This is what I use as installation target, from where the installer-builder
18 # will pick it up. The end-user installation location will be asked by
20 LOCALEDIR = /target/lib/locale
23 LANGUAGES = $(subst .po,,$(wildcard *.po))
25 ################################################################
27 all : $(addsuffix .gmo,$(LANGUAGES))
30 mkdir -p $(addsuffix /LC_MESSAGES,$(addprefix $(LOCALEDIR)/,$(LANGUAGES)))
31 for l in $(LANGUAGES); do cp $$l.gmo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PACKAGE).mo; done