mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
940433ce6e
1999-10-20 Tor Lillqvist <tml@iki.fi> * makefile.msc: Improve, add Shift-JIS version of Japanese. * makefile.cygwin: New file.
37 lines
1 KiB
Plaintext
37 lines
1 KiB
Plaintext
## Makefile for building the GIMP plug-in message catalogs on Win32
|
|
## Use: make -f makefile.cygwin install
|
|
## You will need: - msgfmt from GNU gettext,
|
|
## - jconv (http://www.oreilly.com/~lunde/j_tools.html)
|
|
## - sjis_esc from ../po
|
|
|
|
# Locale directory.
|
|
LOCALEDIR = /gimp/locale
|
|
|
|
# Only some languages actually have any translations
|
|
# LANGUAGES= de fi fr hu it ja ko nl pl ru sv
|
|
LANGUAGES= fr ja ja.sjis no sv
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
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/gimp-std-plugins.mo; done
|
|
|
|
.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:
|
|
rm *.gmo ja.sjis.po
|