(pkgdata_DATA): Add ${LANGNAME}.
authorhanda <handa>
Thu, 10 May 2007 02:26:19 +0000 (02:26 +0000)
committerhanda <handa>
Thu, 10 May 2007 02:26:19 +0000 (02:26 +0000)
(LANGNAME): New variable.
(LANGUAGE.tbl, LANGNAME.en, LANGNAME.fr): New targets.

Makefile.am

index d456a71..e332f84 100644 (file)
@@ -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