makefile.msc 963 Bytes
Newer Older
1
## Makefile for building the GIMP plug-in message catalogs with Microsoft nmake
Tor Lillqvist's avatar
Tor Lillqvist committed
2
## Use: nmake -f makefile.msc install
3
4
5
## You will need: - msgfmt from GNU gettext,
##		  - jconv (http://www.oreilly.com/~lunde/j_tools.html)
##		  - sjis_esc, from ..\po
Tor Lillqvist's avatar
Tor Lillqvist committed
6
7
8
9

# Locale directory.
LOCALEDIR = c:\gimp\locale

10
# Only some languages actually have any translations
Tor Lillqvist's avatar
Tor Lillqvist committed
11
# LANGUAGES= de fi fr hu it ja ko nl pl ru sv
12
LANGUAGES= fr ja ja.sjis no sv
Tor Lillqvist's avatar
Tor Lillqvist committed
13
14
15
16
17
18

################################################################

# Nothing much configurable below

all :
19
	for %l in ($(LANGUAGES)) do nmake -nolofo -f makefile.msc %l.gmo
Tor Lillqvist's avatar
Tor Lillqvist committed
20
21
22
23
24
25
26
27
28
29

install : all
	for %l in ($(LANGUAGES)) do md $(LOCALEDIR)\%l
	for %l in ($(LANGUAGES)) do md $(LOCALEDIR)\%l\LC_MESSAGES
	for %l in ($(LANGUAGES)) do copy %l.gmo $(LOCALEDIR)\%l\LC_MESSAGES\gimp-std-plugins.mo

.SUFFIXES: .po .gmo

.po.gmo:
	msgfmt -o $@ $<
30
31
32
33
34
35
36

ja.sjis.po: ja.po
	jconv -ie -os <ja.po | sjis_esc >ja.sjis.po

clean:
	del *.gmo
	del ja.sjis.po