]> Pileus Git - ~andy/gtk/blob - po/makefile.mingw
Use -no-undefined on Windows. Look for .dll or .so as appropriate as
[~andy/gtk] / po / makefile.mingw
1 ## Makefile for compiling message catalogs on Win32 with cygwin
2 ##
3 ## Use: make -f makefile.mingw install
4 ##
5 ## To convert the clear-text message catalogs to binary form (.gmo)
6 ## files you will need msgfmt, from GNU gettext.
7
8 # This file is possibly included from other po directories, too.  They
9 # should define their own PACKAGE and possibly INSTALLSUBDIR and
10 # LOCALEDIR macros
11
12 ifndef PACKAGE
13 PACKAGE = gtk20
14 endif
15
16 ifndef LOCALEDIR
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
19 # an installer.
20 LOCALEDIR = /target/lib/locale
21 endif
22
23 LANGUAGES = $(subst .po,,$(wildcard *.po))
24
25 ################################################################
26
27 all : $(addsuffix .gmo,$(LANGUAGES))
28
29 install : all
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
32
33 .SUFFIXES: .po .gmo
34
35 .po.gmo:
36         msgfmt -o $@ $<
37
38 clean:
39         -rm *.gmo