Makefile revision 5b72c2c78cdaab2439f613a7a9df81548c42c2ce
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence#
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# This file and its contents are supplied under the terms of the
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Common Development and Distribution License ("CDDL"), version 1.0.
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence# You may only use this file in accordance with the terms of version
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence# 1.0 of the CDDL.
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# A full copy of the text of the CDDL should have accompanied this
15a44745412679c30a6d022733925af70a38b715David Lawrence# source. A copy of the CDDL is also available via the Internet at
15a44745412679c30a6d022733925af70a38b715David Lawrence# http://www.illumos.org/license/CDDL.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# Copyright 2010 Nexenta Systems, Inc. All rights reserved.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrencePROG=localedef
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrewsinclude ../Makefile.cmd
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence
9cd39d7306a472544733aff760d2916888d2b1f4David LawrenceOBJS = charmap.o collate.o ctype.o messages.o monetary.o numeric.o time.o \
9cd39d7306a472544733aff760d2916888d2b1f4David Lawrence scanner.o localedef.o wide.o parser.tab.o
9cd39d7306a472544733aff760d2916888d2b1f4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceHDRS = localedef.h
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceSRCS = $(OBJS:%.o=%.c)
9cd39d7306a472544733aff760d2916888d2b1f4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceCPPFLAGS += -I $(SRC)/lib/libc/port/locale
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceLDLIBS += -lgen
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceLDLIBS += -lavl
5273184ae1ae4fbb30c54d59c6c40ab2c68312afMark AndrewsYFLAGS = -d -b parser
5273184ae1ae4fbb30c54d59c6c40ab2c68312afMark AndrewsCLEANFILES = $(OBJS) parser.tab.c parser.tab.h
5273184ae1ae4fbb30c54d59c6c40ab2c68312afMark AndrewsCLEANFILES += \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence UTF-8.cm \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence 8859-1.cm 8859-2.cm 8859-3.cm 8859-4.cm \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence 8859-5.cm 8859-5.cm 8859-6.cm 8859-7.cm \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence 8859-8.cm 8859-9.cm 8859-9.cm 8859-10.cm \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence 8859-11.cm 8859-13.cm 8859-14.cm 8859-15.cm \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence 8859-16.cm \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence KOI8-R.cm
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceCLOBBERFILES = $(PROG) $(POFILE) $(DATA:%=locale/%)
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrencePIFILES = $(OBJS:%.o=%.i)
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrencePOFILE = localedef_cmd.po
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_1_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence da_DK \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence de_CH \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence en_AU en_CA en_GB en_NZ en_US \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence es_AR es_BO es_CL es_CO es_EC es_GT es_MX es_NI es_PA \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence es_PE es_SV es_UY es_VE \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fr_CA fr_CH \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence is_IS \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence it_CH \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence sv_SE
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_2_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence cs_CZ \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence hr_HR \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence hu_HU \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence pl_PL \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence sq_AL
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_5_LOCALES = \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence bg_BG \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence mk_MK \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ru_RU
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_6_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ar_EG
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_7_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence el_GR
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_9_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence tr_TR
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_11_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence th_TH
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_13_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence lt_LT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence lv_LV
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceISO8859_15_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ca_ES \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence da_DK \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence de_AT de_DE \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence en_GB en_IE en_US \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence es_ES \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fi_FI \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fr_BE fr_FR \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence it_IT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence nl_BE nl_NL \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence pt_PT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence sv_FI sv_SE
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence
8b7304a34c751e519ede7d00b77f1f962c0a37e4David LawrenceKOI8_R_LOCALES = \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ru_RU
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence#
a890fbefa3a143ff0513854c895e0f04c8d72bd5David Lawrence# All new locales should be in UTF-8 form.
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence#
a890fbefa3a143ff0513854c895e0f04c8d72bd5David LawrenceUTF_8_LOCALES = \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence af_ZA \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ar_AE ar_BH ar_DZ ar_EG ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA \
a890fbefa3a143ff0513854c895e0f04c8d72bd5David Lawrence ar_OM ar_QA ar_SA ar_TN ar_YE \
a890fbefa3a143ff0513854c895e0f04c8d72bd5David Lawrence as_IN \
a890fbefa3a143ff0513854c895e0f04c8d72bd5David Lawrence az_AZ \
a890fbefa3a143ff0513854c895e0f04c8d72bd5David Lawrence be_BY \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence bg_BG \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence bn_BD bn_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence bo_CN bo_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ca_ES \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence cs_CZ \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence da_DK \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence de_AT de_BE de_CH de_DE de_LI de_LU \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence el_CY el_GR \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence en_AU en_BW en_BZ en_CA en_GB en_HK en_IE en_IN en_JM en_MH \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence en_MT en_NA en_NZ en_PH en_PK en_SG en_TT en_US en_ZA en_ZW \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence es_AR es_BO es_CL es_CO es_CR es_DO es_EC es_ES es_GQ es_GT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence es_VE \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence et_EE \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fi_FI \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fil_PH \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fr_BE fr_CA fr_CF fr_CH fr_FR fr_GN fr_LU fr_MC fr_MG fr_ML \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence fr_NE fr_SN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ga_IE \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence gu_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence he_IL \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence hi_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence hr_HR \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence hu_HU \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence hy_AM \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence id_ID \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ii_CN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence is_IS \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence it_CH it_IT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ja_JP \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ka_GE \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence kk_KZ \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence kn_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ko_KR \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence kok_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence lt_LT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence lv_LV \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence mk_MK \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ml_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence mn_CN mn_MN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence mr_IN \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ms_MY \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence mt_MT \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ne_IN ne_NP \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence nl_BE nl_NL \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence nb_NO \
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence nn_NO \
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson or_IN \
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson pa_IN pa_PK \
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson pl_PL \
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson pt_BR pt_GW pt_MZ pt_PT \
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson ro_MD ro_RO \
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson ru_MD ru_RU ru_UA \
b7e031d5173476224027407d8e23eaa7557fc396Andreas Gustafsson sa_IN \
b7e031d5173476224027407d8e23eaa7557fc396Andreas Gustafsson si_LK \
b7e031d5173476224027407d8e23eaa7557fc396Andreas Gustafsson sk_SK \
b7e031d5173476224027407d8e23eaa7557fc396Andreas Gustafsson sq_AL \
b7e031d5173476224027407d8e23eaa7557fc396Andreas Gustafsson sv_FI sv_SE \
b7e031d5173476224027407d8e23eaa7557fc396Andreas Gustafsson ta_IN ta_LK \
50b7860fff04e18d13be24899829da467da4132cDavid Lawrence te_IN \
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence th_TH \
50b7860fff04e18d13be24899829da467da4132cDavid Lawrence tr_TR \
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence uk_UA \
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence ug_CN \
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence ur_IN ur_PK \
50b7860fff04e18d13be24899829da467da4132cDavid Lawrence vi_VN \
50b7860fff04e18d13be24899829da467da4132cDavid Lawrence zh_CN zh_HK zh_MO zh_SG zh_TW
7ec4367f3d578170a9495ff3c851b248c1656f08Andreas Gustafsson
7ec4367f3d578170a9495ff3c851b248c1656f08Andreas GustafssonLOCNAMES = \
7ec4367f3d578170a9495ff3c851b248c1656f08Andreas Gustafsson $(ISO8859_1_LOCALES:%=%.ISO8859-1) \
7ec4367f3d578170a9495ff3c851b248c1656f08Andreas Gustafsson $(ISO8859_2_LOCALES:%=%.ISO8859-2) \
7ec4367f3d578170a9495ff3c851b248c1656f08Andreas Gustafsson $(ISO8859_5_LOCALES:%=%.ISO8859-5) \
7ec4367f3d578170a9495ff3c851b248c1656f08Andreas Gustafsson $(ISO8859_6_LOCALES:%=%.ISO8859-6) \
672056d560d973cac1c0d02f087e059eef8f948fBrian Wellington $(ISO8859_7_LOCALES:%=%.ISO8859-7) \
672056d560d973cac1c0d02f087e059eef8f948fBrian Wellington $(ISO8859_9_LOCALES:%=%.ISO8859-9) \
672056d560d973cac1c0d02f087e059eef8f948fBrian Wellington $(ISO8859_11_LOCALES:%=%.ISO8859-11) \
672056d560d973cac1c0d02f087e059eef8f948fBrian Wellington $(ISO8859_13_LOCALES:%=%.ISO8859-13) \
672056d560d973cac1c0d02f087e059eef8f948fBrian Wellington $(ISO8859_15_LOCALES:%=%.ISO8859-15) \
672056d560d973cac1c0d02f087e059eef8f948fBrian Wellington $(KOI8_R_LOCALES:%=%.KOI8-R) \
ba35e9924e95c45f8ae536f453b9064740e49841Andreas Gustafsson $(UTF_8_LOCALES:%=%.UTF-8)
ba35e9924e95c45f8ae536f453b9064740e49841Andreas Gustafsson
ba35e9924e95c45f8ae536f453b9064740e49841Andreas GustafssonLOCDIRS = $(LOCNAMES:%=locale/%)
ba35e9924e95c45f8ae536f453b9064740e49841Andreas Gustafsson
ba35e9924e95c45f8ae536f453b9064740e49841Andreas GustafssonSTAMPFILES = $(LOCDIRS:%=%/stamp)
ba35e9924e95c45f8ae536f453b9064740e49841Andreas Gustafsson
ba35e9924e95c45f8ae536f453b9064740e49841Andreas GustafssonCATDIRS = \
d144ea1d1c08204c3a86ca0ebbc6d203a8270260Brian Wellington $(LOCDIRS:%=%/LC_COLLATE) \
f2194a8ba995997dfdc1f863d1a6ee48f0fb382aBrian Wellington $(LOCDIRS:%=%/LC_CTYPE) \
f2194a8ba995997dfdc1f863d1a6ee48f0fb382aBrian Wellington $(LOCDIRS:%=%/LC_MESSAGES) \
f2194a8ba995997dfdc1f863d1a6ee48f0fb382aBrian Wellington $(LOCDIRS:%=%/LC_MONETARY) \
f2194a8ba995997dfdc1f863d1a6ee48f0fb382aBrian Wellington $(LOCDIRS:%=%/LC_NUMERIC) \
f2194a8ba995997dfdc1f863d1a6ee48f0fb382aBrian Wellington $(LOCDIRS:%=%/LC_TIME)
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas Gustafsson
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDATA = $(CATDIRS:%=%/LCL_DATA)
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas Gustafsson
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDCOLL = LC_COLLATE/LCL_DATA
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDCTYPE = LC_CTYPE/LCL_DATA
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDMSGS = LC_MESSAGES/LCL_DATA
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDMON = LC_MONETARY/LCL_DATA
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDNUM = LC_NUMERIC/LCL_DATA
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonDTIME = LC_TIME/LCL_DATA
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas Gustafsson
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonROOTLOCDIRS = $(LOCDIRS:%=$(ROOTLIB)/%)
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonROOTCATDIRS = $(CATDIRS:%=$(ROOTLIB)/%)
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas GustafssonROOTDATA = $(DATA:%=$(ROOTLIB)/%)
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas Gustafsson
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas Gustafsson$(ROOTDATA) := FILEMODE=0444
c3ebcedbe5b1510289957ec187d6b062c27b142fAndreas Gustafsson
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrewsall: $(PROG) $(DATA)
b28d2a3d7b00bc9a0b0a5a894f345a028f3416deAndreas Gustafsson
b28d2a3d7b00bc9a0b0a5a894f345a028f3416deAndreas Gustafssoninstall: all $(ROOTPROG) $(ROOTDATA)
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews
b28d2a3d7b00bc9a0b0a5a894f345a028f3416deAndreas Gustafsson$(PROG): $(OBJS)
b28d2a3d7b00bc9a0b0a5a894f345a028f3416deAndreas Gustafsson $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews $(POST_PROCESS)
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews$(OBJS): parser.tab.h
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrewsparser.tab.c parser.tab.h: parser.y $(HDRS)
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews $(YACC) $(YFLAGS) parser.y
911533025604975b5548d038ca09cff17c7f534eAndreas Gustafsson
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrewslint: $(SRCS)
911533025604975b5548d038ca09cff17c7f534eAndreas Gustafsson $(LINT.c) $(CPPFLAGS) $(SRCS)
3bd4083e486d200d4f5992ac9da2dc7131c7b9aeDanny Mayer
dee69dd3aafe1339cd62928b858d18fdc0536642Andreas Gustafssonclean:
911533025604975b5548d038ca09cff17c7f534eAndreas Gustafsson $(RM) $(CLEANFILES)
911533025604975b5548d038ca09cff17c7f534eAndreas Gustafsson $(RM) $(STAMPFILES)
911533025604975b5548d038ca09cff17c7f534eAndreas Gustafsson
9282d220f4e731fe72372ca06bc6a4f0c1aaaa35Mark Andrews$(POFILE): $(PIFILES)
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson $(RM) $@
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson $(RM) messages.po
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson $(XGETTEXT) -s $(PIFILES)
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson $(SED) -e '/domain/d' messages.po > $@
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson $(RM) $(PIFILES) messages.po
996f4a8bc34cb0203ce6a40ff82bca8bf32423ccAndreas Gustafsson
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrewslocale $(ROOTLOCDIRS) $(ROOTCATDIRS):
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrews $(INS.dir)
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrews
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrewsinclude ../Makefile.targ
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrews
59251c9e9c2135bdb64ccf970f0a769a0bbe30abMark Andrewslocale/%.UTF-8/stamp: data/%.UTF-8.src UTF-8.cm locale $(PROG)
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence ./$(PROG) -U -i $< -f UTF-8.cm $(@D)
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrence $(TOUCH) $@
8b7304a34c751e519ede7d00b77f1f962c0a37e4David Lawrencelocale/%.ISO8859-1/stamp: data/%.UTF-8.src 8859-1.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-1.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-2/stamp: data/%.UTF-8.src 8859-2.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-2.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-5/stamp: data/%.UTF-8.src 8859-5.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-5.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-7/stamp: data/%.UTF-8.src 8859-7.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-7.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-6/stamp: data/%.UTF-8.src 8859-6.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-6.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-9/stamp: data/%.UTF-8.src 8859-9.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-9.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-11/stamp: data/%.UTF-8.src 8859-11.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-11.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-13/stamp: data/%.UTF-8.src 8859-13.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-13.cm $(@D)
$(TOUCH) $@
locale/%.ISO8859-15/stamp: data/%.UTF-8.src 8859-15.cm locale $(PROG)
./$(PROG) -U -i $< -f 8859-15.cm $(@D)
$(TOUCH) $@
locale/%.KOI8-R/stamp: data/%.UTF-8.src KOI8-R.cm locale $(PROG)
./$(PROG) -U -i $< -f KOI8-R.cm $(@D)
$(TOUCH) $@
locale/%/$(DCOLL): locale/%/stamp
locale/%/$(DCTYPE): locale/%/stamp
locale/%/$(DMSGS): locale/%/stamp
locale/%/$(DMON): locale/%/stamp
locale/%/$(DNUM): locale/%/stamp
locale/%/$(DTIME): locale/%/stamp
UTF-8.cm: data/UTF-8.cm
$(LN) -sf data/UTF-8.cm $@
%.cm: data/%.TXT UTF-8.cm
$(RM) $@
$(PERL) data/convert_map.pl $< > $@
$(ROOTDATA): $(ROOTLOCDIRS) $(ROOTCATDIRS) $(DATA)
$(RM) $@
$(CP) $(@:$(ROOTLIB)/%=%) $@
$(CHMOD) 0444 $@