2000-12-14 21:15:05 +00:00
|
|
|
## Makefile for compiling message catalogs on Win32 with cygwin
|
2000-07-25 17:12:23 +00:00
|
|
|
##
|
2000-12-14 21:15:05 +00:00
|
|
|
## Use: make -f makefile.mingw install
|
2000-07-25 17:12:23 +00:00
|
|
|
##
|
|
|
|
## To convert the clear-text message catalogs to binary form (.gmo)
|
2000-12-14 21:15:05 +00:00
|
|
|
## files you will need msgfmt, from GNU gettext.
|
2000-07-25 17:12:23 +00:00
|
|
|
|
2001-11-02 22:56:59 +00:00
|
|
|
# This file is possibly included from other po directories, too. They
|
|
|
|
# should define their own PACKAGE and possibly INSTALLSUBDIR and
|
|
|
|
# LOCALEDIR macros
|
2000-07-25 17:12:23 +00:00
|
|
|
|
|
|
|
ifndef PACKAGE
|
2000-07-25 20:38:35 +00:00
|
|
|
PACKAGE = gtk20
|
2000-07-25 17:12:23 +00:00
|
|
|
endif
|
2001-11-02 22:56:59 +00:00
|
|
|
|
2000-07-25 17:12:23 +00:00
|
|
|
ifndef LOCALEDIR
|
|
|
|
# This is what I use as installation target, from where the installer-builder
|
2000-12-14 21:15:05 +00:00
|
|
|
# will pick it up. The end-user installation location will be asked by
|
2001-11-02 22:56:59 +00:00
|
|
|
# an installer.
|
|
|
|
LOCALEDIR = /target/lib/locale
|
2000-07-25 17:12:23 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
LANGUAGES = $(subst .po,,$(wildcard *.po))
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
all : $(addsuffix .gmo,$(LANGUAGES))
|
|
|
|
|
|
|
|
install : all
|
|
|
|
mkdir -p $(addsuffix /LC_MESSAGES,$(addprefix $(LOCALEDIR)/,$(LANGUAGES)))
|
|
|
|
for l in $(LANGUAGES); do cp $$l.gmo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PACKAGE).mo; done
|
|
|
|
|
2000-12-14 21:15:05 +00:00
|
|
|
.SUFFIXES: .po .gmo
|
2000-07-25 17:12:23 +00:00
|
|
|
|
2000-12-14 21:15:05 +00:00
|
|
|
.po.gmo:
|
2000-07-25 17:12:23 +00:00
|
|
|
msgfmt -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
2000-12-14 21:15:05 +00:00
|
|
|
-rm *.gmo
|