From: handa Date: Thu, 10 May 2007 02:26:19 +0000 (+0000) Subject: (pkgdata_DATA): Add ${LANGNAME}. X-Git-Tag: REL-1-4-0~104 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a3caf1c2fefca8e1d7ec53f6f77b7a078c56259;p=m17n%2Fm17n-db.git (pkgdata_DATA): Add ${LANGNAME}. (LANGNAME): New variable. (LANGUAGE.tbl, LANGNAME.en, LANGNAME.fr): New targets. --- 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