1999-10-20 Tor Lillqvist <tml@iki.fi> * makefile.cygwin: New file. * makefile.msc: Add Shift-JIS Japanese version.
37 lines
1 KiB
Text
37 lines
1 KiB
Text
## Makefile for building the GIMP message catalogs with Microsoft nmake
|
|
## Use: nmake -f makefile.msc install
|
|
## You will need: - msgfmt from GNU gettext,
|
|
## - jconv (http://www.oreilly.com/~lunde/j_tools.html)
|
|
## - sjis_esc, included here eventually
|
|
|
|
# Locale directory.
|
|
LOCALEDIR = c:\gimp\locale
|
|
|
|
LANGUAGES= cs da de fi fr hu it ja ja.sjis ko nl no pl ru sk sv
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
all :
|
|
for %l in ($(LANGUAGES)) do nmake -nologo -f makefile.msc %l.gmo
|
|
|
|
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.mo
|
|
|
|
.SUFFIXES: .po .gmo
|
|
|
|
.po.gmo:
|
|
msgfmt -o $@ $<
|
|
|
|
# Special case: Japanese, we must convert from EUC-JP to Shift-JIS
|
|
# As Shift-JIS can have " and \ chars as second byte, we need to
|
|
# escape those with the sjis_esc filter
|
|
ja.sjis.po: ja.po
|
|
jconv -ie -os <ja.po | sjis_esc >ja.sjis.po
|
|
|
|
clean:
|
|
del *.gmo
|
|
del ja.sjis.po
|