diff admin/charsets/Makefile @ 89751:a6bed93396e8

(TRANS_TABLE): New macro. (JISX0208.map): Convert 0x2015 to 0x2014. (cp51932.el): New target. (eucjp-ms.el): New target. (install): Include ${TRANS_TABLE}.
author Kenichi Handa <handa@m17n.org>
date Tue, 27 Jan 2004 02:02:55 +0000
parents 09b8cb925c81
children 95fd0085db37
line wrap: on
line diff
--- a/admin/charsets/Makefile	Tue Jan 27 01:59:12 2004 +0000
+++ b/admin/charsets/Makefile	Tue Jan 27 02:02:55 2004 +0000
@@ -40,6 +40,8 @@
 #	provided at <http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/CJK.html>
 #   o 720.htm and 858.htm
 #	provided at <http://www.microsoft.com/globaldev/reference/oem/>
+#   o eucJP-13th.txt, eucJP-udc.txt, eucJP-ibmext.txt
+#	provided at <http://www.opengroup.or.jp/jvc/cde/>
 # OLDEMACS
 #   emacs of version 21.3.50 or later
 #
@@ -95,6 +97,8 @@
 	MULE-sisheng.map MULE-tibetan.map \
 	MULE-lviscii.map MULE-uviscii.map
 
+TRANS_TABLE = cp51932.el eucjp-ms.el
+
 charsets: ${CHARSETS}
 
 AWK = gawk
@@ -178,7 +182,8 @@
 
 JISX0208.map: ${GLIBC_CHARMAPS}/EUC-JP mapconv
 	# Generating $@...
-	@mapconv $< '/^<.*[ 	]\/x[a-f]/' GLIBC-2-7 > $@
+	@mapconv $< '/^<.*[ 	]\/x[a-f]/' GLIBC-2-7 \
+	  | sed 's/0x2015/0x2014/' > $@
 
 JISX0212.map: ${GLIBC_CHARMAPS}/EUC-JP mapconv compact.awk
 	# Generating $@...
@@ -196,6 +201,15 @@
 	# Generating $@...
 	@mapconv $< '/^0x[89A-F][0-9A-F][0-9A-F]/' UNICODE2 cp932.awk > $@
 
+cp51932.el: CP932-2BYTE.map cp51932.awk
+	@$(AWK) -f cp51932.awk < CP932-2BYTE.map > $@
+
+eucjp-ms.el: ${MISC_CHARMAPS}/eucJP-13th.txt ${MISC_CHARMAPS}/eucJP-udc.txt \
+		${MISC_CHARMAPS}/eucJP-ibmext.txt eucjp-ms.awk
+	@(cd ${MISC_CHARMAPS}; \
+	  cat eucJP-13th.txt eucJP-udc.txt eucJP-ibmext.txt) \
+	  | $(AWK) -f eucjp-ms.awk > $@
+
 JISC6226.map : ${MISC_CHARMAPS}/Uni2JIS mapconv kuten.awk
 	# Generating $@...
 	@mapconv $< '/^[^#].*0-/' YASUOKA kuten.awk > $@
@@ -285,8 +299,9 @@
 	# Generating $@...
 	@mapconv $< '/^<.*[ 	]\/x/' GLIBC-1 compact.awk > $@
 
-install: ${CHARSETS}
+install: ${CHARSETS} ${TRANS_TABLE}
 	cp ${CHARSETS} ../../etc/charsets
+	cp ${TRANS_TABLE} ../../lisp/international
 
 # Clear files that are automatically generated.
 clean: