From 5a3caf1c2fefca8e1d7ec53f6f77b7a078c56259 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 10 May 2007 02:26:19 +0000 Subject: [PATCH] (pkgdata_DATA): Add ${LANGNAME}. (LANGNAME): New variable. (LANGUAGE.tbl, LANGNAME.en, LANGNAME.fr): New targets. --- Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index d456a71..e332f84 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,6 +29,7 @@ pkgdata_DATA = \ ${FONT_LAYOUT_TABLE} \ ${INPUT_METHOD} \ ${MISC_TABLE} \ + ${LANGNAME} \ mdb.dir EXTRA_DIST = config.rpath mkinstalldirs m4/ChangeLog \ @@ -179,6 +180,10 @@ FORMATS = \ FORMATS/Dir.txt FORMATS/FontEncoding.txt FORMATS/Fontset.txt \ FORMATS/FLT.txt FORMATS/FontSize.txt FORMATS/IM.txt +LANGNAME = \ + LANGNAME.en \ + LANGNAME.fr + # Rules for charsets CHARMAPS = @CHARMAPS@ @@ -360,6 +365,15 @@ BLOCK.tab: echo "# Generated from $<." > $@ @$(AWK) -f CHARTAB.awk FIELD=$@ $< >>$@ +LANGUAGE.tbl: LANGUAGE.awk LANGDATA/ISO-639-2.txt LANGDATA/native.txt + @$(AWK) -f LANGUAGE.awk '-F|' < LANGDATA/ISO-639-2.txt > $@ + +LANGNAME.en: LANGNAME.awk LANGDATA/ISO-639-2.txt + @$(AWK) -f LANGNAME.awk -v LANG=en '-F|' < LANGDATA/ISO-639-2.txt > $@ + +LANGNAME.fr: LANGNAME.awk LANGDATA/ISO-639-2.txt + @$(AWK) -f LANGNAME.awk -v LANG=fr '-F|' < LANGDATA/ISO-639-2.txt > $@ + pkgdatadir=$(datadir)/m17n bin_SCRIPTS = m17n-db -- 1.7.10.4