xref: /titanic_41/usr/src/cmd/localedef/Makefile (revision 0b42f15ac52b077791d4ba079e8c163c592c3fda)
16b5e5868SGarrett D'Amore#
26b5e5868SGarrett D'Amore# This file and its contents are supplied under the terms of the
36b5e5868SGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
45aec55ebSGarrett D'Amore# You may only use this file in accordance with the terms of version
55aec55ebSGarrett D'Amore# 1.0 of the CDDL.
66b5e5868SGarrett D'Amore#
76b5e5868SGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
86b5e5868SGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
96b5e5868SGarrett D'Amore# http://www.illumos.org/license/CDDL.
106b5e5868SGarrett D'Amore#
116b5e5868SGarrett D'Amore
126b5e5868SGarrett D'Amore#
1344fd9652SGarrett D'Amore# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
148f4fd638SAndrzej Szeszo# Copyright 2011 EveryCity Ltd. All rights reserved.
15*2da1cd3aSGarrett D'Amore# Copyright 2013 DEY Storage Systems, Inc.
166b5e5868SGarrett D'Amore#
176b5e5868SGarrett D'Amore
186b5e5868SGarrett D'AmorePROG=localedef
196b5e5868SGarrett D'Amore
206b5e5868SGarrett D'Amoreinclude ../Makefile.cmd
216b5e5868SGarrett D'Amore
226b5e5868SGarrett D'AmoreOBJS = 	charmap.o collate.o ctype.o messages.o monetary.o numeric.o time.o \
236b5e5868SGarrett D'Amore	scanner.o localedef.o wide.o parser.tab.o
246b5e5868SGarrett D'Amore
256b5e5868SGarrett D'AmoreHDRS	= localedef.h
266b5e5868SGarrett D'Amore
276b5e5868SGarrett D'AmoreSRCS	= $(OBJS:%.o=%.c)
286b5e5868SGarrett D'Amore
296b5e5868SGarrett D'AmoreCPPFLAGS	+= -I $(SRC)/lib/libc/port/locale
307014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-char-subscripts
317014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
327014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
336b5e5868SGarrett D'AmoreLDLIBS		+= -lgen
346b5e5868SGarrett D'AmoreLDLIBS 		+= -lavl
356b5e5868SGarrett D'AmoreYFLAGS		= -d -b parser
367014882cSRichard Lowe
376b5e5868SGarrett D'AmoreCLEANFILES	= $(OBJS) parser.tab.c parser.tab.h
386b5e5868SGarrett D'AmoreCLEANFILES	+= \
39017c01f8SYuri Pankov		UTF-8.cm UTF-8.ct \
406b5e5868SGarrett D'Amore		8859-1.cm 8859-2.cm 8859-3.cm 8859-4.cm \
416b5e5868SGarrett D'Amore		8859-5.cm 8859-5.cm 8859-6.cm 8859-7.cm \
426b5e5868SGarrett D'Amore		8859-8.cm 8859-9.cm 8859-9.cm 8859-10.cm \
436b5e5868SGarrett D'Amore		8859-11.cm 8859-13.cm 8859-14.cm 8859-15.cm \
446b5e5868SGarrett D'Amore		8859-16.cm \
456b5e5868SGarrett D'Amore		KOI8-R.cm
46b6805bf7SGordon RossCLOBBERFILES	= $(PROG) $(POFILE) \
47b6805bf7SGordon Ross		GB18030.cm UTF-8.cm
48b6805bf7SGordon Ross
496b5e5868SGarrett D'AmorePIFILES		= $(OBJS:%.o=%.i)
506b5e5868SGarrett D'AmorePOFILE		= localedef_cmd.po
516b5e5868SGarrett D'Amore
526b5e5868SGarrett D'AmoreISO8859_1_LOCALES	= \
536b5e5868SGarrett D'Amore		da_DK \
546b5e5868SGarrett D'Amore		de_CH \
556b5e5868SGarrett D'Amore		en_AU en_CA en_GB en_NZ en_US \
566b5e5868SGarrett D'Amore		es_AR es_BO es_CL es_CO es_EC es_GT es_MX es_NI es_PA \
576b5e5868SGarrett D'Amore		es_PE es_SV es_UY es_VE \
586b5e5868SGarrett D'Amore		fr_CA fr_CH \
596b5e5868SGarrett D'Amore		is_IS \
606b5e5868SGarrett D'Amore		it_CH \
616b5e5868SGarrett D'Amore		sv_SE
626b5e5868SGarrett D'Amore
636b5e5868SGarrett D'AmoreISO8859_2_LOCALES	= \
646b5e5868SGarrett D'Amore		cs_CZ \
656b5e5868SGarrett D'Amore		hr_HR \
666b5e5868SGarrett D'Amore		hu_HU \
676b5e5868SGarrett D'Amore		pl_PL \
686b5e5868SGarrett D'Amore		sq_AL
696b5e5868SGarrett D'Amore
706b5e5868SGarrett D'AmoreISO8859_5_LOCALES	= \
716b5e5868SGarrett D'Amore		bg_BG \
726b5e5868SGarrett D'Amore		mk_MK \
736b5e5868SGarrett D'Amore		ru_RU
746b5e5868SGarrett D'Amore
755080145bSGarrett D'AmoreISO8859_6_LOCALES	=
766b5e5868SGarrett D'Amore
776b5e5868SGarrett D'AmoreISO8859_7_LOCALES	= \
786b5e5868SGarrett D'Amore		el_GR
796b5e5868SGarrett D'Amore
806b5e5868SGarrett D'AmoreISO8859_9_LOCALES	= \
816b5e5868SGarrett D'Amore		tr_TR
826b5e5868SGarrett D'Amore
836b5e5868SGarrett D'AmoreISO8859_11_LOCALES	= \
846b5e5868SGarrett D'Amore		th_TH
856b5e5868SGarrett D'Amore
866b5e5868SGarrett D'AmoreISO8859_13_LOCALES	= \
876b5e5868SGarrett D'Amore		lt_LT \
886b5e5868SGarrett D'Amore		lv_LV
896b5e5868SGarrett D'Amore
906b5e5868SGarrett D'AmoreISO8859_15_LOCALES	= \
916b5e5868SGarrett D'Amore		ca_ES \
926b5e5868SGarrett D'Amore		da_DK \
936b5e5868SGarrett D'Amore		de_AT de_DE \
946b5e5868SGarrett D'Amore		en_GB en_IE en_US \
956b5e5868SGarrett D'Amore		es_ES \
966b5e5868SGarrett D'Amore		fi_FI \
976b5e5868SGarrett D'Amore		fr_BE fr_FR \
986b5e5868SGarrett D'Amore		it_IT \
996b5e5868SGarrett D'Amore		nl_BE nl_NL \
1006b5e5868SGarrett D'Amore		pt_PT \
1016b5e5868SGarrett D'Amore		sv_FI sv_SE
1026b5e5868SGarrett D'Amore
1036b5e5868SGarrett D'AmoreKOI8_R_LOCALES		= \
1046b5e5868SGarrett D'Amore		ru_RU
1056b5e5868SGarrett D'Amore
1062de57b5dSBruce YaoGB18030_LOCALES		= \
1072de57b5dSBruce Yao		zh_CN
1082de57b5dSBruce Yao
1096b5e5868SGarrett D'Amore#
1106b5e5868SGarrett D'Amore# All new locales should be in UTF-8 form.
1116b5e5868SGarrett D'Amore#
1126b5e5868SGarrett D'AmoreUTF_8_LOCALES		= \
1136b5e5868SGarrett D'Amore		af_ZA \
1146b5e5868SGarrett D'Amore		ar_AE ar_BH ar_DZ ar_EG ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA \
1156b5e5868SGarrett D'Amore		ar_OM ar_QA ar_SA ar_TN ar_YE \
1166b5e5868SGarrett D'Amore		as_IN \
1176b5e5868SGarrett D'Amore		az_AZ \
1186b5e5868SGarrett D'Amore		be_BY \
1196b5e5868SGarrett D'Amore		bg_BG \
1206b5e5868SGarrett D'Amore		bn_BD bn_IN \
1216b5e5868SGarrett D'Amore		bo_CN bo_IN \
1228f4fd638SAndrzej Szeszo		bs_BA \
1236b5e5868SGarrett D'Amore		ca_ES \
1246b5e5868SGarrett D'Amore		cs_CZ \
1256b5e5868SGarrett D'Amore		da_DK \
1266b5e5868SGarrett D'Amore		de_AT de_BE de_CH de_DE de_LI de_LU \
1276b5e5868SGarrett D'Amore		el_CY el_GR \
1286b5e5868SGarrett D'Amore		en_AU en_BW en_BZ en_CA en_GB en_HK en_IE en_IN en_JM en_MH \
1296b5e5868SGarrett D'Amore		en_MT en_NA en_NZ en_PH en_PK en_SG en_TT en_US en_ZA en_ZW \
1306b5e5868SGarrett D'Amore		es_AR es_BO es_CL es_CO es_CR es_DO es_EC es_ES es_GQ es_GT \
1316b5e5868SGarrett D'Amore		es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY \
1326b5e5868SGarrett D'Amore		es_VE \
1336b5e5868SGarrett D'Amore		et_EE \
1346b5e5868SGarrett D'Amore		fi_FI \
1356b5e5868SGarrett D'Amore		fil_PH \
1366b5e5868SGarrett D'Amore		fr_BE fr_CA fr_CF fr_CH fr_FR fr_GN fr_LU fr_MC fr_MG fr_ML \
1376b5e5868SGarrett D'Amore		fr_NE fr_SN \
1386b5e5868SGarrett D'Amore		ga_IE \
1396b5e5868SGarrett D'Amore		gu_IN \
1406b5e5868SGarrett D'Amore		he_IL \
1416b5e5868SGarrett D'Amore		hi_IN \
1426b5e5868SGarrett D'Amore		hr_HR \
1436b5e5868SGarrett D'Amore		hu_HU \
1446b5e5868SGarrett D'Amore		hy_AM \
1456b5e5868SGarrett D'Amore		id_ID \
1466b5e5868SGarrett D'Amore		ii_CN \
1476b5e5868SGarrett D'Amore		is_IS \
1486b5e5868SGarrett D'Amore		it_CH it_IT \
1496b5e5868SGarrett D'Amore		ja_JP \
1506b5e5868SGarrett D'Amore		ka_GE \
1516b5e5868SGarrett D'Amore		kk_KZ \
1529aa4b6ecSShampavman		km_KH \
1536b5e5868SGarrett D'Amore		kn_IN \
1546b5e5868SGarrett D'Amore		ko_KR \
1556b5e5868SGarrett D'Amore		kok_IN \
1566b5e5868SGarrett D'Amore		lt_LT \
1576b5e5868SGarrett D'Amore		lv_LV \
1586b5e5868SGarrett D'Amore		mk_MK \
1596b5e5868SGarrett D'Amore		ml_IN \
1606b5e5868SGarrett D'Amore		mn_CN mn_MN \
1616b5e5868SGarrett D'Amore		mr_IN \
1625b72c2c7SShampavman		ms_MY \
1636b5e5868SGarrett D'Amore		mt_MT \
1646b5e5868SGarrett D'Amore		ne_IN ne_NP \
1656b5e5868SGarrett D'Amore		nl_BE nl_NL \
1666b5e5868SGarrett D'Amore		nb_NO \
1676b5e5868SGarrett D'Amore		nn_NO \
1686b5e5868SGarrett D'Amore		or_IN \
1696b5e5868SGarrett D'Amore		pa_IN pa_PK \
1706b5e5868SGarrett D'Amore		pl_PL \
1716b5e5868SGarrett D'Amore		pt_BR pt_GW pt_MZ pt_PT \
1726b5e5868SGarrett D'Amore		ro_MD ro_RO \
1736b5e5868SGarrett D'Amore		ru_MD ru_RU ru_UA \
1746b5e5868SGarrett D'Amore		sa_IN \
1756b5e5868SGarrett D'Amore		si_LK \
1766b5e5868SGarrett D'Amore		sk_SK \
1778f4fd638SAndrzej Szeszo		sl_SI \
1786b5e5868SGarrett D'Amore		sq_AL \
17944fd9652SGarrett D'Amore		sr_BA sr_ME sr_RS \
1806b5e5868SGarrett D'Amore		sv_FI sv_SE \
1816b5e5868SGarrett D'Amore		ta_IN ta_LK \
1826b5e5868SGarrett D'Amore		te_IN \
1836b5e5868SGarrett D'Amore		th_TH \
1846b5e5868SGarrett D'Amore		tr_TR \
1856b5e5868SGarrett D'Amore		uk_UA \
1866b5e5868SGarrett D'Amore		ug_CN \
1876b5e5868SGarrett D'Amore		ur_IN ur_PK \
1886b5e5868SGarrett D'Amore		vi_VN \
1896b5e5868SGarrett D'Amore		zh_CN zh_HK zh_MO zh_SG zh_TW
1906b5e5868SGarrett D'Amore
191017c01f8SYuri PankovUTF8SRCS	= $(UTF_8_LOCALES:%=data/%.UTF-8.src)
192017c01f8SYuri Pankov
1936b5e5868SGarrett D'AmoreLOCNAMES	= \
1946b5e5868SGarrett D'Amore		$(ISO8859_1_LOCALES:%=%.ISO8859-1) \
1956b5e5868SGarrett D'Amore		$(ISO8859_2_LOCALES:%=%.ISO8859-2) \
1966b5e5868SGarrett D'Amore		$(ISO8859_5_LOCALES:%=%.ISO8859-5) \
1976b5e5868SGarrett D'Amore		$(ISO8859_6_LOCALES:%=%.ISO8859-6) \
1986b5e5868SGarrett D'Amore		$(ISO8859_7_LOCALES:%=%.ISO8859-7) \
1996b5e5868SGarrett D'Amore		$(ISO8859_9_LOCALES:%=%.ISO8859-9) \
2006b5e5868SGarrett D'Amore		$(ISO8859_11_LOCALES:%=%.ISO8859-11) \
2016b5e5868SGarrett D'Amore		$(ISO8859_13_LOCALES:%=%.ISO8859-13) \
2026b5e5868SGarrett D'Amore		$(ISO8859_15_LOCALES:%=%.ISO8859-15) \
2036b5e5868SGarrett D'Amore		$(KOI8_R_LOCALES:%=%.KOI8-R) \
2042de57b5dSBruce Yao		$(GB18030_LOCALES:%=%.GB18030) \
2056b5e5868SGarrett D'Amore		$(UTF_8_LOCALES:%=%.UTF-8)
2066b5e5868SGarrett D'Amore
2076b5e5868SGarrett D'AmoreLOCDIRS		= $(LOCNAMES:%=locale/%)
2086b5e5868SGarrett D'Amore
2096b5e5868SGarrett D'AmoreSTAMPFILES	= $(LOCDIRS:%=%/stamp)
2106b5e5868SGarrett D'Amore
2116b5e5868SGarrett D'AmoreCATDIRS		= \
2126b5e5868SGarrett D'Amore		$(LOCDIRS:%=%/LC_COLLATE) \
2136b5e5868SGarrett D'Amore		$(LOCDIRS:%=%/LC_CTYPE) \
2146b5e5868SGarrett D'Amore		$(LOCDIRS:%=%/LC_MESSAGES) \
2156b5e5868SGarrett D'Amore		$(LOCDIRS:%=%/LC_MONETARY) \
2166b5e5868SGarrett D'Amore		$(LOCDIRS:%=%/LC_NUMERIC) \
2176b5e5868SGarrett D'Amore		$(LOCDIRS:%=%/LC_TIME)
2186b5e5868SGarrett D'Amore
2196b5e5868SGarrett D'AmoreDATA		= $(CATDIRS:%=%/LCL_DATA)
2206b5e5868SGarrett D'Amore
2216b5e5868SGarrett D'AmoreDCOLL		= LC_COLLATE/LCL_DATA
2226b5e5868SGarrett D'AmoreDCTYPE		= LC_CTYPE/LCL_DATA
2236b5e5868SGarrett D'AmoreDMSGS		= LC_MESSAGES/LCL_DATA
2246b5e5868SGarrett D'AmoreDMON		= LC_MONETARY/LCL_DATA
2256b5e5868SGarrett D'AmoreDNUM		= LC_NUMERIC/LCL_DATA
2266b5e5868SGarrett D'AmoreDTIME		= LC_TIME/LCL_DATA
2276b5e5868SGarrett D'Amore
2286b5e5868SGarrett D'AmoreROOTLOCDIRS	= $(LOCDIRS:%=$(ROOTLIB)/%)
2296b5e5868SGarrett D'AmoreROOTCATDIRS	= $(CATDIRS:%=$(ROOTLIB)/%)
2306b5e5868SGarrett D'AmoreROOTDATA	= $(DATA:%=$(ROOTLIB)/%)
2316b5e5868SGarrett D'Amore
2326b5e5868SGarrett D'Amore$(ROOTDATA)	:= FILEMODE=0444
2336b5e5868SGarrett D'Amore
2346b5e5868SGarrett D'Amoreall: $(PROG) $(DATA)
2356b5e5868SGarrett D'Amore
2366b5e5868SGarrett D'Amoreinstall: all $(ROOTPROG) $(ROOTDATA)
2376b5e5868SGarrett D'Amore
2386b5e5868SGarrett D'Amore$(PROG): $(OBJS)
2396b5e5868SGarrett D'Amore	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
2406b5e5868SGarrett D'Amore	$(POST_PROCESS)
2416b5e5868SGarrett D'Amore
2426b5e5868SGarrett D'Amore$(OBJS):	parser.tab.h
2436b5e5868SGarrett D'Amore
2446b5e5868SGarrett D'Amoreparser.tab.c parser.tab.h: parser.y $(HDRS)
2456b5e5868SGarrett D'Amore	$(YACC) $(YFLAGS) parser.y
2466b5e5868SGarrett D'Amore
2476b5e5868SGarrett D'Amorelint:	$(SRCS)
2486b5e5868SGarrett D'Amore	$(LINT.c) $(CPPFLAGS) $(SRCS)
2496b5e5868SGarrett D'Amore
2506b5e5868SGarrett D'Amoreclean:
2516b5e5868SGarrett D'Amore	$(RM) $(CLEANFILES)
2526b5e5868SGarrett D'Amore	$(RM) $(STAMPFILES)
2536b5e5868SGarrett D'Amore
254b6805bf7SGordon Rossclobber: clean
255b6805bf7SGordon Ross	$(RM) $(CLOBBERFILES)
256b6805bf7SGordon Ross	$(RM) -r $(LOCDIRS)
257b6805bf7SGordon Ross
2586b5e5868SGarrett D'Amore$(POFILE):	$(PIFILES)
2596b5e5868SGarrett D'Amore	$(RM) $@
2606b5e5868SGarrett D'Amore	$(RM) messages.po
2616b5e5868SGarrett D'Amore	$(XGETTEXT) -s $(PIFILES)
2626b5e5868SGarrett D'Amore	$(SED) -e '/domain/d' messages.po > $@
2636b5e5868SGarrett D'Amore	$(RM) $(PIFILES) messages.po
2646b5e5868SGarrett D'Amore
2656b5e5868SGarrett D'Amorelocale $(ROOTLOCDIRS) $(ROOTCATDIRS):
2666b5e5868SGarrett D'Amore	$(INS.dir)
2676b5e5868SGarrett D'Amore
268b6805bf7SGordon Ross$(ROOTBIN)/%: $(ROOTBIN) %
269b6805bf7SGordon Ross	$(INS.file)
2706b5e5868SGarrett D'Amore
271017c01f8SYuri Pankov# Strip LC_CTYPE contents for UTF-8 locales and replace them
272017c01f8SYuri Pankov# with UTF-8.ct we compiled
273017c01f8SYuri Pankovlocale/%.UTF-8/stamp:		data/%.UTF-8.src UTF-8.cm \
274017c01f8SYuri Pankov				UTF-8.ct locale $(PROG)
275017c01f8SYuri Pankov	$(SED) '/^LC_CTYPE/,/^END LC_CTYPE/d;$$r UTF-8.ct' $< | \
276*2da1cd3aSGarrett D'Amore		./$(PROG) -U -w data/widths.txt -f UTF-8.cm $(@D)
2776b5e5868SGarrett D'Amore	$(TOUCH) $@
2786b5e5868SGarrett D'Amorelocale/%.ISO8859-1/stamp:	data/%.UTF-8.src 8859-1.cm locale $(PROG)
279*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-1.cm $(@D)
2806b5e5868SGarrett D'Amore	$(TOUCH) $@
2816b5e5868SGarrett D'Amorelocale/%.ISO8859-2/stamp:	data/%.UTF-8.src 8859-2.cm locale $(PROG)
282*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-2.cm $(@D)
2836b5e5868SGarrett D'Amore	$(TOUCH) $@
2846b5e5868SGarrett D'Amorelocale/%.ISO8859-5/stamp:	data/%.UTF-8.src 8859-5.cm locale $(PROG)
285*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-5.cm $(@D)
2866b5e5868SGarrett D'Amore	$(TOUCH) $@
2876b5e5868SGarrett D'Amorelocale/%.ISO8859-7/stamp:	data/%.UTF-8.src 8859-7.cm locale $(PROG)
288*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-7.cm $(@D)
2896b5e5868SGarrett D'Amore	$(TOUCH) $@
2906b5e5868SGarrett D'Amorelocale/%.ISO8859-6/stamp:	data/%.UTF-8.src 8859-6.cm locale $(PROG)
291*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-6.cm $(@D)
2926b5e5868SGarrett D'Amore	$(TOUCH) $@
2936b5e5868SGarrett D'Amorelocale/%.ISO8859-9/stamp:	data/%.UTF-8.src 8859-9.cm locale $(PROG)
294*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-9.cm $(@D)
2956b5e5868SGarrett D'Amore	$(TOUCH) $@
2966b5e5868SGarrett D'Amorelocale/%.ISO8859-11/stamp:	data/%.UTF-8.src 8859-11.cm locale $(PROG)
297*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-11.cm $(@D)
2986b5e5868SGarrett D'Amore	$(TOUCH) $@
2996b5e5868SGarrett D'Amorelocale/%.ISO8859-13/stamp:	data/%.UTF-8.src 8859-13.cm locale $(PROG)
300*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-13.cm $(@D)
3016b5e5868SGarrett D'Amore	$(TOUCH) $@
3026b5e5868SGarrett D'Amorelocale/%.ISO8859-15/stamp:	data/%.UTF-8.src 8859-15.cm locale $(PROG)
303*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f 8859-15.cm $(@D)
3046b5e5868SGarrett D'Amore	$(TOUCH) $@
3056b5e5868SGarrett D'Amorelocale/%.KOI8-R/stamp:		data/%.UTF-8.src KOI8-R.cm locale $(PROG)
306*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f KOI8-R.cm $(@D)
3076b5e5868SGarrett D'Amore	$(TOUCH) $@
3082de57b5dSBruce Yaolocale/%.GB18030/stamp:		data/%.UTF-8.src GB18030.cm locale $(PROG)
309*2da1cd3aSGarrett D'Amore	./$(PROG) -U -w data/widths.txt -i $< -f GB18030.cm $(@D)
3102de57b5dSBruce Yao	$(TOUCH) $@
3116b5e5868SGarrett D'Amore
3126b5e5868SGarrett D'Amorelocale/%/$(DCOLL):	locale/%/stamp
3136b5e5868SGarrett D'Amorelocale/%/$(DCTYPE):	locale/%/stamp
3146b5e5868SGarrett D'Amorelocale/%/$(DMSGS):	locale/%/stamp
3156b5e5868SGarrett D'Amorelocale/%/$(DMON):	locale/%/stamp
3166b5e5868SGarrett D'Amorelocale/%/$(DNUM):	locale/%/stamp
3176b5e5868SGarrett D'Amorelocale/%/$(DTIME):	locale/%/stamp
3186b5e5868SGarrett D'Amore
3196b5e5868SGarrett D'AmoreUTF-8.cm: data/UTF-8.cm
3206b5e5868SGarrett D'Amore	$(LN) -sf data/UTF-8.cm  $@
3216b5e5868SGarrett D'Amore
322017c01f8SYuri PankovUTF-8.ct: $(UTF8SRCS)
323017c01f8SYuri Pankov	$(SH) data/ctype.sh $(UTF8SRCS) > $@
324017c01f8SYuri Pankov
3252de57b5dSBruce YaoGB18030.cm: data/GB18030.cm
3262de57b5dSBruce Yao	$(LN) -sf data/GB18030.cm  $@
3272de57b5dSBruce Yao
3286b5e5868SGarrett D'Amore%.cm: data/%.TXT UTF-8.cm
3296b5e5868SGarrett D'Amore	$(RM) $@
3306b5e5868SGarrett D'Amore	$(PERL) data/convert_map.pl $< > $@
3316b5e5868SGarrett D'Amore
3326b5e5868SGarrett D'Amore$(ROOTDATA):	$(ROOTLOCDIRS) $(ROOTCATDIRS) $(DATA)
3336b5e5868SGarrett D'Amore	$(RM) $@
3346b5e5868SGarrett D'Amore	$(CP) $(@:$(ROOTLIB)/%=%) $@
3356b5e5868SGarrett D'Amore	$(CHMOD) 0444 $@
336