makefile.cygwin Renamed. Use iconv, not native2ascii.

2000-07-25  Tor Lillqvist  <tml@iki.fi>

	* makefile.cygwin
	* makefile.mingw: Renamed. Use iconv, not native2ascii.
This commit is contained in:
Tor Lillqvist 2000-07-25 17:12:23 +00:00 committed by Tor Lillqvist
parent 838e2f341b
commit 1623b0fcfe
3 changed files with 157 additions and 137 deletions

View File

@ -1,3 +1,8 @@
2000-07-25 Tor Lillqvist <tml@iki.fi>
* makefile.cygwin
* makefile.mingw: Renamed. Use iconv, not native2ascii.
2000-07-24 Szabolcs BAN <shooby@gnome.hu>
* hu.po: Updated Hungarian translations.

View File

@ -1,137 +0,0 @@
## Makefile for compiling UTF-8 message catalogs on Win32 with cygwin
##
## Use: make -f makefile.cygwin install
##
## To convert the clear-text message catalogs to binary form (.gmo)
## files in the UTF-8 encoding of Unicode that we want,
## you will need: - native2ascii from the JDK
## - msgfmt from GNU gettext
# This file is included from other po directories, too.
# They should define their own PACKAGE and LOCALEDIR macros
ifndef PACKAGE
PACKAGE = gtk+
endif
ifndef LOCALEDIR
LOCALEDIR = /WINDOWS/$(PACKAGE)/locale
endif
# uk (Ukrainian) is skipped, as native2ascii doesn't know the KOI8_U
# encoding, sigh. Or is it suffuciently similar to KOI8_R?
LANGUAGES= $(basename $(basename $(wildcard $(addsuffix .po,ca cs da de el en_GB es et eu fi fr ga gl hr hu it ja ko nl no pl pt pt_BR ru sk sl sv tr wa zh_CN.GB2312 zh_TW.Big5))))
################################################################
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
.SUFFIXES: .po .jpo .utf8 .gmo
.utf8.gmo:
msgfmt -o $@ $<
.jpo.utf8:
native2ascii -encoding UTF8 -reverse $< $@
ca.jpo: ca.po
native2ascii -encoding 8859_1 ca.po ca.jpo
cs.jpo: cs.po
native2ascii -encoding 8859_2 cs.po cs.jpo
da.jpo: da.po
native2ascii -encoding 8859_1 da.po da.jpo
de.jpo: de.po
native2ascii -encoding 8859_1 de.po de.jpo
el.jpo: el.po
native2ascii -encoding 8859_7 el.po el.jpo
en_GB.jpo: en_GB.po
native2ascii -encoding 8859_1 en_GB.po en_GB.jpo
es.jpo: es.po
native2ascii -encoding 8859_1 es.po es.jpo
et.jpo: et.po
native2ascii -encoding 8859_1 et.po et.jpo
eu.jpo: eu.po
native2ascii -encoding 8859_1 eu.po eu.jpo
fi.jpo: fi.po
native2ascii -encoding 8859_1 fi.po fi.jpo
fr.jpo: fr.po
native2ascii -encoding 8859_1 fr.po fr.jpo
ga.jpo: ga.po
native2ascii -encoding 8859_1 ga.po ga.jpo
gl.jpo: gl.po
native2ascii -encoding 8859_1 gl.po gl.jpo
hr.jpo: hr.po
native2ascii -encoding 8859_2 hr.po hr.jpo
hu.jpo: hu.po
native2ascii -encoding 8859_2 hu.po hu.jpo
it.jpo: it.po
native2ascii -encoding 8859_1 it.po it.jpo
ja.jpo: ja.po
native2ascii -encoding EUC-JP ja.po ja.jpo
ko.jpo: ko.po
native2ascii -encoding EUC-KR ko.po ko.jpo
nl.jpo: nl.po
native2ascii -encoding 8859_1 nl.po nl.jpo
no.jpo: no.po
native2ascii -encoding 8859_1 no.po no.jpo
pl.jpo: pl.po
native2ascii -encoding 8859_2 pl.po pl.jpo
pt.jpo: pt.po
native2ascii -encoding 8859_1 pt.po pt.jpo
pt_BR.jpo: pt_BR.po
native2ascii -encoding 8859_1 pt_BR.po pt_BR.jpo
ru.jpo: ru.po
native2ascii -encoding KOI8_R ru.po ru.jpo
sk.jpo: sk.po
native2ascii -encoding 8859_2 sk.po sk.jpo
sl.jpo: sl.po
native2ascii -encoding 8859_2 sl.po sl.jpo
sv.jpo: sv.po
native2ascii -encoding 8859_1 sv.po sv.jpo
#uk.jpo: uk.po
# native2ascii -encoding KOI8_U uk.po uk.jpo
tr.jpo: tr.po
native2ascii -encoding 8859_9 tr.po tr.jpo
wa.jpo: wa.po
native2ascii -encoding 8859_1 wa.po wa.jpo
zh_TW.jpo: zh_TW.Big5.po
native2ascii -encoding Big5 zh_TW.Big5.po zh_TW.jpo
zh_CN.jpo: zh_CN.GB2312.po
native2ascii -encoding GB2312 zh_CN.GB2312.po zh_CN.jpo
clean:
-rm *.jpo *.utf8 *.gmo

152
po/makefile.mingw Normal file
View File

@ -0,0 +1,152 @@
## Makefile for compiling UTF-8 message catalogs on Win32 with cygwin
##
## Use: make -f makefile.cygwin install
##
## To convert the clear-text message catalogs to binary form (.gmo)
## files in the UTF-8 encoding of Unicode that we want,
## you will need: - iconv, from the tests directory in libiconv
## - msgfmt, from GNU gettext
# This file is included from other po directories, too.
# They should define their own PACKAGE and possibly LOCALEDIR macros
ifndef PACKAGE
PACKAGE = gtk+
endif
ifndef INSTALLSUBDIR
INSTALLSUBDIR = $(PACKAGE)
endif
ifndef LOCALEDIR
# This is what I use as installation target, from where the installer-builder
# will pick it up. The user installation location will be asked by
# the installer (typically %WinDir%\gtk+).
LOCALEDIR = /install/$(INSTALLSUBDIR)/locale
endif
LANGUAGES = $(subst .po,,$(wildcard *.po))
LANGUAGES := $(subst .GB2312,,$(LANGUAGES))
LANGUAGES := $(subst .Big5,,$(LANGUAGES))
################################################################
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
.SUFFIXES: .po .utf8 .gmo
.utf8.gmo:
msgfmt -o $@ $<
ca.utf8: ca.po
iconv -f ISO-8859-1 -t UTF-8 ca.po >$@
cs.utf8: cs.po
iconv -f ISO-8859-2 -t UTF-8 cs.po >$@
da.utf8: da.po
iconv -f ISO-8859-1 -t UTF-8 da.po >$@
de.utf8: de.po
iconv -f ISO-8859-1 -t UTF-8 de.po >$@
el.utf8: el.po
iconv -f ISO-8859-7 -t UTF-8 el.po >$@
en_GB.utf8: en_GB.po
iconv -f ISO-8859-1 -t UTF-8 en_GB.po >$@
es.utf8: es.po
iconv -f ISO-8859-1 -t UTF-8 es.po >$@
et.utf8: et.po
iconv -f ISO-8859-1 -t UTF-8 et.po >$@
eu.utf8: eu.po
iconv -f ISO-8859-1 -t UTF-8 eu.po >$@
fi.utf8: fi.po
iconv -f ISO-8859-1 -t UTF-8 fi.po >$@
fr.utf8: fr.po
iconv -f ISO-8859-1 -t UTF-8 fr.po >$@
ga.utf8: ga.po
iconv -f ISO-8859-1 -t UTF-8 ga.po >$@
gl.utf8: gl.po
iconv -f ISO-8859-1 -t UTF-8 gl.po >$@
hr.utf8: hr.po
iconv -f ISO-8859-2 -t UTF-8 hr.po >$@
hu.utf8: hu.po
iconv -f ISO-8859-2 -t UTF-8 hu.po >$@
it.utf8: it.po
iconv -f ISO-8859-1 -t UTF-8 it.po >$@
ja.utf8: ja.po
iconv -f EUC-JP -t UTF-8 ja.po >$@
ko.utf8: ko.po
iconv -f EUC-KR -t UTF-8 ko.po >$@
lt.utf8: lt.po
iconv -f ISO-8859-13 -t UTF-8 lt.po >$@
nl.utf8: nl.po
iconv -f ISO-8859-1 -t UTF-8 nl.po >$@
no.utf8: no.po
iconv -f ISO-8859-1 -t UTF-8 no.po >$@
pl.utf8: pl.po
iconv -f ISO-8859-2 -t UTF-8 pl.po >$@
pt.utf8: pt.po
iconv -f ISO-8859-1 -t UTF-8 pt.po >$@
pt_BR.utf8: pt_BR.po
iconv -f ISO-8859-1 -t UTF-8 pt_BR.po >$@
ro.utf8: ru.po
iconv -f ISO-8859-2 -t UTF-8 ro.po >$@
ru.utf8: ru.po
iconv -f KOI8-R -t UTF-8 ru.po >$@
sk.utf8: sk.po
iconv -f ISO-8859-2 -t UTF-8 sk.po >$@
sl.utf8: sl.po
iconv -f ISO-8859-2 -t UTF-8 sl.po >$@
sv.utf8: sv.po
iconv -f ISO-8859-1 -t UTF-8 sv.po >$@
uk.utf8: uk.po
iconv -f KOI8-U -t UTF-8 uk.po >$@
tr.utf8: tr.po
iconv -f ISO-8859-9 -t UTF-8 tr.po >$@
wa.utf8: wa.po
iconv -f ISO-8859-1 -t UTF-8 wa.po >$@
zh_CN.gmo: zh_CN.utf8
msgfmt -o $@ $<
zh_CN.utf8: zh_CN.GB2312.po
iconv -f GB2312 -t UTF-8 zh_CN.GB2312.po >$@
zh_TW.gmo: zh_TW.utf8
msgfmt -o $@ $<
zh_TW.utf8: zh_TW.Big5.po
iconv -f BIG5 -t UTF-8 zh_TW.Big5.po >$@
clean:
-rm *.utf8 *.gmo