2002-01-24 17:32:12 +00:00
## Makefile.in for ICU data
## Copyright (c) 1999-2002, International Business Machines Corporation and
## others. All Rights Reserved.
## Source directory information
2000-08-29 07:28:22 +00:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2002-01-24 17:32:12 +00:00
# So that you have $(top_builddir)/config.status
2000-10-26 19:28:33 +00:00
top_builddir = ..
2002-04-19 02:19:24 +00:00
## All the flags and other definitions are included here.
2000-10-26 19:28:33 +00:00
i n c l u d e $( top_builddir ) / i c u d e f s . m k
2000-08-29 07:28:22 +00:00
2002-01-24 17:32:12 +00:00
## Build directory information
# So that $(top_builddir)/$(subdir) ~= "here"
subdir = data
2000-08-29 07:28:22 +00:00
2001-05-15 04:29:28 +00:00
#lib icu data for link
LIB_ICUDATA_NAME = lib$( ICUDATA_NAME)
2002-01-24 17:32:12 +00:00
2002-07-17 15:13:08 +00:00
# sanity!
ICUDT = $( ICUDATA_PLATFORM_NAME) _
2000-12-01 17:20:26 +00:00
top_builddir_from_tmp = $( patsubst ..%,../..%,$( top_builddir) )
2001-05-30 22:13:37 +00:00
CURDIR = $( shell pwd )
2002-01-24 17:32:12 +00:00
PKGDATA = $( top_builddir) /tools/pkgdata/pkgdata -O $( top_builddir) /data/icupkg.inc -d $( CURDIR) /out
2002-01-17 21:19:54 +00:00
PKGDATA_VERSIONING = -r $( SO_TARGET_VERSION)
2000-08-29 07:28:22 +00:00
2002-01-24 17:32:12 +00:00
# OBJDATADIR must be a short path (with ..'s) to the data.
SRCDATADIR = $( top_srcdir) /data
OUTDIR = $( top_builddir) /data/out
2002-01-25 00:09:01 +00:00
BUILDDIR = $( OUTDIR) /build
2002-01-24 17:32:12 +00:00
UNICODEDATADIR = $( SRCDATADIR) /unidata
LOCSRCDIR = $( SRCDATADIR) /locales
TRNSSRCDIR = $( SRCDATADIR) /translit
BRKSRCDIR = $( SRCDATADIR) /brkitr
MISCSRCDIR = $( SRCDATADIR) /misc
UCMSRCDIR = $( SRCDATADIR) /mappings
SRCLISTDEPS = Makefile $( srcdir) /Makefile.in $( LOCSRCDIR) /resfiles.mk $( TRNSSRCDIR) /trnsfiles.mk
# relative lib links from pkgdata are the same as for tmp
TOOLDIR = $( top_builddir) /tools
2000-08-29 07:28:22 +00:00
## List of phony targets
2002-01-24 17:32:12 +00:00
.PHONY : all all -local all -recursive install install -local install -files install -dlls build -cmnfile build -dll \
2000-08-29 07:28:22 +00:00
i n s t a l l - r e c u r s i v e c l e a n c l e a n - l o c a l c l e a n - r e c u r s i v e d i s t c l e a n \
2002-01-24 17:32:12 +00:00
d i s t c l e a n - l o c a l d i s t c l e a n - r e c u r s i v e d i s t d i s t - l o c a l d i s t - r e c u r s i v e \
c h e c k c h e c k - l o c a l c h e c k - r e c u r s i v e b u i l d - t e s t d l l s b u i l d - b a s e t e s t d a t a b u i l d - l o c a l
2000-08-29 07:28:22 +00:00
## Clear suffix list
.SUFFIXES :
## List of standard targets
2002-01-24 17:32:12 +00:00
all : all -local
2002-01-29 00:59:55 +00:00
install : all -local install -local
2002-01-24 17:32:12 +00:00
clean : clean -local
distclean : distclean -local
dist :
check : all
2000-08-29 07:28:22 +00:00
2002-01-24 17:32:12 +00:00
distclean-local : clean
$( RMV) Makefile
2002-03-15 18:17:14 +00:00
2002-05-23 23:23:46 +00:00
i f e q ( $( OS 390_STUBDATA ) , 1 )
OS390PKG = package390
OS390INSTALL = install390
# Additional data for 390
OS390LIST = $( BUILDDIR) /icudata390.lst
2000-12-05 18:33:14 +00:00
e n d i f
2002-01-24 17:32:12 +00:00
all-local : icupkg .inc build -local packagedata testdata packagetest $( OS 390PKG )
2000-12-01 17:20:26 +00:00
2000-08-29 07:28:22 +00:00
dist-local :
2002-07-31 20:28:32 +00:00
clean-map :
-test -z *.map || $( RMV) *.map
clean-local : cleanpackage cleanfiles clean -map
2002-03-15 18:17:14 +00:00
$( RMV) $( TESTOUTDIR) /testdata.dat
2000-12-01 17:20:26 +00:00
cleanfiles :
2000-08-29 07:28:22 +00:00
test -z " $( CLEANFILES) " || $( RMV) $( CLEANFILES)
2000-12-01 17:20:26 +00:00
2002-03-15 18:17:14 +00:00
cleanpackage :
$( RMV) $( OUTDIR)
$( RMV) $( TESTOUTDIR)
2000-12-01 17:20:26 +00:00
2000-08-29 07:28:22 +00:00
check-local :
2002-01-24 17:32:12 +00:00
packagedata : icupkg .inc $( BUILDDIR ) /icudata .lst
2002-02-14 19:18:37 +00:00
$( INVOKE) $( PKGDATA) -e $( ICUDATA_ENTRY_POINT) -T $( BUILDDIR) -p $( ICUDATA_NAME) -m $( PKGDATA_MODE) $( PKGDATA_VERSIONING) $( BUILDDIR) /icudata.lst
2000-12-01 17:20:26 +00:00
2002-03-02 22:25:56 +00:00
## Install ICU data.
2002-01-24 17:32:12 +00:00
install-local : $( BUILDDIR ) /icudata .lst ./icupkg .inc install -convrtrstxt $( OS 390INSTALL )
2001-11-10 02:09:59 +00:00
$( MKINSTALLDIRS) $( TMPDATADIR) $( DESTDIR) $( ICUPKGDATA_DIR)
2002-02-14 19:18:37 +00:00
$( INVOKE) $( PKGDATA) -m $( PKGDATA_MODE) $( PKGDATA_VERSIONING) -e $( ICUDATA_ENTRY_POINT) -T $( BUILDDIR) -s $( BUILDDIR) -p $( ICUDATA_NAME) $( BUILDDIR) /icudata.lst -I $( DESTDIR) $( ICUPKGDATA_DIR)
2000-08-29 07:28:22 +00:00
2002-03-02 22:25:56 +00:00
install-convrtrstxt : $( DESTDIR ) $( pkgsysconfdir ) /convrtrs .txt
$(DESTDIR)$(pkgsysconfdir)/convrtrs.txt : $( UCMSRCDIR ) /convrtrs .txt
2000-12-13 03:12:29 +00:00
$( MKINSTALLDIRS) $( DESTDIR) $( pkgsysconfdir)
2002-03-02 22:25:56 +00:00
$( INSTALL_DATA) $< $@
2000-08-29 07:28:22 +00:00
2001-11-06 22:19:17 +00:00
####
####
#### 390 support
2002-05-23 23:23:46 +00:00
install390 : $( BUILDDIR ) /icudata 390.lst ./icupkg .inc
2001-11-09 02:24:19 +00:00
$( MKINSTALLDIRS) $( TMPDATADIR) $( DESTDIR) $( libdir)
2002-05-23 23:23:46 +00:00
$( INVOKE) $( PKGDATA) -s $( BUILDDIR) -T $( BUILDDIR) /tmp3901 -p $( ICUDATA_NAME) $( STUB_SUFFIX) -e $( ICUDATA_ENTRY_POINT) $( BUILDDIR) /icudata390.lst -m dll $( PKGDATA_VERSIONING) -I $( DESTDIR) $( ICUPKGDATA_DIR)
2001-11-09 02:24:19 +00:00
2001-11-06 22:19:17 +00:00
#### $(LIB_ICUDATA_NAME)$(BATCH_SUFFIX) is the subset data for batch mode
2002-05-23 23:23:46 +00:00
package390 : $( BUILDDIR ) /icudata 390.lst $( BUILDDIR ) /icudata .lst ./icupkg .inc
@$( MKINSTALLDIRS) $( BUILDDIR) /tmp3901
2002-08-15 17:08:01 +00:00
$( INVOKE) $( PKGDATA) -s $( BUILDDIR) -T $( BUILDDIR) /tmp3901 -p $( ICUDATA_NAME) $( STUB_SUFFIX) -e $( ICUDATA_ENTRY_POINT) $( BUILDDIR) /icudata390.lst -m dll $( PKGDATA_VERSIONING)
2002-05-23 23:23:46 +00:00
cp $( OUTDIR) /$( LIB_ICUDATA_NAME) $( STUB_SUFFIX) .$( SO) $( top_builddir) /stubdata/$( LIB_ICUDATA_NAME) $( STUB_SUFFIX) .$( SO)
2001-10-05 16:53:08 +00:00
2002-01-24 17:32:12 +00:00
##### Define all the data files. the build rule that depends on them is below.
## DAT files - Misc. data files.
2002-07-17 23:43:23 +00:00
DAT_FILES_SHORT = uprops.icu unames.icu unorm.icu cnvalias.icu tz.icu ucadata.icu invuca.icu
2002-07-17 15:13:08 +00:00
DAT_FILES = $( DAT_FILES_SHORT:%= $( BUILDDIR) /$( ICUDT) %)
2002-01-24 17:32:12 +00:00
## BRK files
# ALL of these files can be deleted (the following BRK files) - they are copied
2002-07-17 15:13:08 +00:00
BRK_FILES_SHORT = char.brk line.brk line_th.brk sent.brk word.brk title.brk word_th.brk
BRK_FILES = $( BRK_FILES_SHORT:%= $( BUILDDIR) /$( ICUDT) %)
2002-01-24 17:32:12 +00:00
# don't include thaidict.brk - it goes into a resource bundle - plus it isn't deleted
## UCM files
- i n c l u d e $( UCMSRCDIR ) / u c m c o r e . m k
- i n c l u d e $( UCMSRCDIR ) / u c m f i l e s . m k
- i n c l u d e $( UCMSRCDIR ) / u c m e b c d i c . m k
- i n c l u d e $( UCMSRCDIR ) / u c m l o c a l . m k
2002-09-18 01:22:20 +00:00
ALL_UCM_SOURCE = ibm-37.ucm ibm-1047.ucm $( UCM_SOURCE_CORE) $( UCM_SOURCE_FILES) $( UCM_SOURCE_EBCDIC) $( UCM_SOURCE_LOCAL)
2002-01-24 17:32:12 +00:00
UCM_FILES = $( ALL_UCM_SOURCE:%= $( SRCDATADIR) /%)
2002-07-17 15:13:08 +00:00
CNV_FILES = $( ALL_UCM_SOURCE:%.ucm= $( BUILDDIR) /$( ICUDT) %.cnv)
2002-01-24 17:32:12 +00:00
## RES files
i n c l u d e $( LOCSRCDIR ) / r e s f i l e s . m k
- i n c l u d e $( LOCSRCDIR ) / r e s l o c a l . m k
2002-07-30 08:00:51 +00:00
RES_SOURCE = root.txt $( GENRB_SOURCE) $( GENRB_ALIAS_SOURCE) $( GENRB_SOURCE_LOCAL)
2002-01-24 17:32:12 +00:00
RES_SRC_FILES = $( RES_SOURCE:%= $( LOCSRCDIR) /%)
2002-05-13 17:26:51 +00:00
INSTALLED_RB_FILES = $( GENRB_SOURCE:%.txt= %,) $( GENRB_SOURCE_LOCAL:%.txt= %,)
2002-07-17 15:13:08 +00:00
GENRBOPTS = -v
2002-01-24 17:32:12 +00:00
## TRNS files
i n c l u d e $( TRNSSRCDIR ) / t r n s f i l e s . m k
- i n c l u d e $( TRNSSRCDIR ) / t r n s l o c a l . m k
TRNS_SOURCE = $( TRANSLIT_SOURCE) $( TRANSLIT_SOURCE_LOCAL)
TRNS_SRC_FILES = $( TRNS_SOURCE:%= $( TRNSSRCDIR) /%)
ALL_RES_SOURCE = $( RES_SOURCE) $( TRNS_SOURCE)
2002-07-17 15:13:08 +00:00
RES_FILES = $( ALL_RES_SOURCE:%.txt= $( BUILDDIR) /$( ICUDT) %.res)
2002-01-24 17:32:12 +00:00
2002-05-13 17:26:51 +00:00
INDEX_FILES = $( BUILDDIR) /res_index.txt
2002-07-17 15:13:08 +00:00
INDEX_RES_FILES = $( INDEX_FILES:$( BUILDDIR) /%.txt= $( BUILDDIR) /$( ICUDT) %.res)
2002-05-13 17:26:51 +00:00
2002-01-24 17:32:12 +00:00
## All generated files
2002-07-18 22:01:55 +00:00
ALL_FILES = $( DAT_FILES) $( CNV_FILES) $( BRK_FILES) $( RES_FILES) $( INDEX_RES_FILES)
2002-01-24 17:32:12 +00:00
#####################################################
# General data build rules
## Files to remove for 'make clean'
2002-03-15 18:17:14 +00:00
CLEANFILES = *~ icupkg.inc
2002-01-24 17:32:12 +00:00
$(BUILDDIR)/icudata.lst : $( SRCLISTDEPS )
@echo " generating $@ (list of data files) "
@-$( RMV) $@
@for file in $( ALL_FILES) ; do \
echo $$ file >> $@ ; \
done ;
build-local : build -data build -testdata
2002-05-23 23:23:46 +00:00
build-data : build -dir $( ALL_FILES ) $( BUILDDIR ) /icudata .lst $( OS 390LIST )
2002-01-24 17:32:12 +00:00
build-dir :
2002-01-25 00:09:01 +00:00
-$( MKINSTALLDIRS) $( OUTDIR) $( BUILDDIR) $( TESTOUTDIR) $( TESTBUILDDIR)
2002-01-24 17:32:12 +00:00
# Now, sections for building each kind of data.
#################################################### DAT
# DAT FILES
2002-07-17 23:43:23 +00:00
# uprops.icu
$(BUILDDIR)/$(ICUDT)uprops.icu : $( UNICODEDATADIR ) /UnicodeData .txt $( UNICODEDATADIR ) /BidiMirroring .txt $( TOOLDIR ) /genprops /genprops $( EXEEXT )
2002-01-24 17:32:12 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genprops/genprops -s $( UNICODEDATADIR) -d $( BUILDDIR) -u $( UNICODE_VERSION)
2002-07-17 23:43:23 +00:00
# unorm.icu
$(BUILDDIR)/$(ICUDT)unorm.icu : $( UNICODEDATADIR ) /UnicodeData .txt $( UNICODEDATADIR ) /DerivedNormalizationProps .txt $( UNICODEDATADIR ) /BidiMirroring .txt $( TOOLDIR ) /gennorm /gennorm $( EXEEXT )
2002-01-24 17:32:12 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /gennorm/gennorm -s $( UNICODEDATADIR) -d $( BUILDDIR) -u $( UNICODE_VERSION)
2002-07-17 23:43:23 +00:00
# ucadata.icu
$(BUILDDIR)/$(ICUDT)ucadata.icu : $( UNICODEDATADIR ) /FractionalUCA .txt $( TOOLDIR ) /genuca /genuca $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) unorm .icu
2002-07-17 15:13:08 +00:00
$( INVOKE) $( TOOLDIR) /genuca/genuca -s $( UNICODEDATADIR) -d $( BUILDDIR) -i $( BUILDDIR)
2002-01-24 17:32:12 +00:00
2002-07-17 23:43:23 +00:00
# unames.icu
$(BUILDDIR)/$(ICUDT)unames.icu : $( UNICODEDATADIR ) /UnicodeData .txt $( TOOLDIR ) /gennames /gennames $( EXEEXT )
2002-02-25 00:28:04 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /gennames/gennames -1 -d $( BUILDDIR) $( UNICODEDATADIR) /UnicodeData.txt -u $( UNICODE_VERSION)
2002-01-24 17:32:12 +00:00
2002-06-28 23:59:22 +00:00
# cnvalias.icu
2002-07-17 15:13:08 +00:00
$(BUILDDIR)/$(ICUDT)cnvalias.icu : $( UCMSRCDIR ) /convrtrs .txt $( TOOLDIR ) /gencnval /gencnval $( EXEEXT )
2002-01-24 17:32:12 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /gencnval/gencnval -d $( BUILDDIR) $( UCMSRCDIR) /convrtrs.txt
2002-07-17 23:43:23 +00:00
# tz.icu
$(BUILDDIR)/$(ICUDT)tz.icu : $( MISCSRCDIR ) /timezone .txt $( TOOLDIR ) /gentz /gentz $( EXEEXT )
2002-01-24 17:32:12 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /gentz/gentz -d $( BUILDDIR) $( MISCSRCDIR) /timezone.txt
2002-07-10 23:45:51 +00:00
#################################################### BRK
# BRK FILES
thaidict.brk : $( SRCDATADIR ) /thaidict .brk
$( RMV) $@ && ln -s $( BUILDDIR) $@
2002-07-17 15:13:08 +00:00
$(BUILDDIR)/$(ICUDT)%.brk : $( BRKSRCDIR ) /%.txt $( TOOLDIR ) /genbrk /genbrk $( EXEEXT )
2002-07-10 23:45:51 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genbrk/genbrk -r $< -o $@
2002-07-17 15:13:08 +00:00
#################################################### CNV
# CNV FILES
$(BUILDDIR)/$(ICUDT)%.cnv : $( UCMSRCDIR ) /%.ucm $( TOOLDIR ) /makeconv /makeconv $( EXEEXT )
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /makeconv/makeconv -p $( ICUDATA_PLATFORM_NAME) -c -d $( BUILDDIR) $( UCMSRCDIR) /$( <F)
2002-01-24 17:32:12 +00:00
#################################################### RES
# RES FILES
2002-07-17 15:13:08 +00:00
all-RES : $( RES_FILES )
2002-01-24 17:32:12 +00:00
2002-07-17 23:43:23 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( LOCSRCDIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) ucadata .icu $( BUILDDIR ) /$( ICUDT ) uprops .icu $( BUILDDIR ) /$( ICUDT ) unorm .icu
2002-07-17 15:13:08 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -q -s $( LOCSRCDIR) -d $( BUILDDIR) $( <F)
2002-01-24 17:32:12 +00:00
2002-07-17 15:13:08 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( TRNSSRCDIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT )
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -q -s $( TRNSSRCDIR) -d $( BUILDDIR) $( <F)
2002-01-24 17:32:12 +00:00
2002-05-13 17:26:51 +00:00
$(BUILDDIR)/res_index.txt : $( SRCLISTDEPS )
@echo " generating $@ (list of installed locales) " ; \
$( RMV) $@ ; \
echo "// Warning this file is automatically generated" > $@ ; \
echo "res_index {" >> $@ ; \
echo " InstalledLocales:array {" >> $@ ; \
for file in $( INSTALLED_RB_FILES) ; do \
echo " $$ file " >> $@ ; \
done ; \
echo " }" >> $@ ; \
echo "}" >> $@ ;
2002-07-17 15:13:08 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( INDEX_FILES ) $( TOOLDIR ) /genrb /genrb $( EXEEXT )
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -d $( BUILDDIR) $( INDEX_FILES)
2002-01-24 17:32:12 +00:00
###################################################################
Makefile : $( srcdir ) /Makefile .in $( top_builddir ) /config .status
cd $( top_builddir) \
&& CONFIG_FILES = $( subdir) /$@ CONFIG_HEADERS = $( SHELL) ./config.status
icupkg.inc : $( srcdir ) /icupkg .inc .in $( top_builddir ) /config .status
cd $( top_builddir) \
&& CONFIG_FILES = $( subdir) /$@ CONFIG_HEADERS = $( SHELL) ./config.status
###########
2002-05-23 23:23:46 +00:00
########### 390 (z/OS) support
2002-09-18 01:22:20 +00:00
UCMFILES390 = ebcdic-xml-us.ucm ibm-37.ucm ibm-1047.ucm ibm-4909.ucm
2002-07-17 23:43:23 +00:00
ALLFILES390 = uprops.icu unorm.icu cnvalias.icu $( UCMFILES390:.ucm= .cnv)
2002-01-24 17:32:12 +00:00
2002-05-23 23:23:46 +00:00
$(BUILDDIR)/icudata390.lst : $( SRCLISTDEPS )
2002-01-24 17:32:12 +00:00
@echo " generating $@ (list of 390 data files) "
@-$( RMV) $@
@for file in $( ALLFILES390) ; do \
2002-07-25 16:07:35 +00:00
echo $( BUILDDIR) /$( ICUDT) $$ file >> $@ ; \
2002-01-24 17:32:12 +00:00
done ;
2002-05-23 23:23:46 +00:00
2002-07-17 15:13:08 +00:00
#########################################################################
############################## Test ## stuff ############################
TESTSRCDATADIR = $( top_srcdir) /test/testdata
TESTOUTDIR = $( top_builddir) /test/testdata/out
# Contains all 'intermediate' files (and temp files) except for 'unpackaged data' below
TESTBUILDDIR = $( TESTOUTDIR) /build
# unpackaged files - live in 'out' so that the path can find them as part of the pkg
UNPACKAGEDTESTDATA = $( TESTOUTDIR) /$( TESTDT) nam.typ
# pkg name for testdata
TESTDATA = testdata
# prefix for files that are testdata
TESTDT = $( TESTDATA) _
# File definitions
2002-07-17 23:43:23 +00:00
TEST_DAT_FILES = $( TESTBUILDDIR) /$( TESTDT) test.icu
2002-07-17 15:13:08 +00:00
TEST_UCM_SOURCE = test1.ucm test3.ucm test4.ucm
TEST_UCM_FILES = $( TEST_UCM_SOURCE:%= $( TESTSRCDATADIR) /data/%)
TEST_CNV_FILES = $( TEST_UCM_SOURCE:%.ucm= $( TESTBUILDDIR) /$( TESTDT) %.cnv)
TEST_RES = casing.txt root.txt te.txt te_IN.txt testtypes.txt testaliases.txt testempty.txt DataDrivenCollationTest.txt
2002-09-19 00:31:11 +00:00
TEST_RES_FILES = $( TEST_RES:%.txt= $( TESTBUILDDIR) /$( TESTDT) %.res) $( TESTBUILDDIR) /$( TESTDT) iscii.res
2002-07-17 15:13:08 +00:00
ALL_TEST_FILES = $( TEST_DAT_FILES) $( TEST_BRK_FILES) $( TEST_CNV_FILES) $( TEST_RES_FILES) $( TESTOUTDIR) /$( TESTDT) nam.typ
# list
$(TESTBUILDDIR)/testdata.lst : $( SRCLISTDEPS )
@echo " generating $@ (list of data files) "
@-$( RMV) $@
@for file in $( TEST_RES_FILES) $( TEST_DAT_FILES) $( TEST_CNV_FILES) ; do \
echo $$ file >> $@ ; \
done ;
2002-09-18 21:23:46 +00:00
build-testdata : $( ALL_TEST_FILES ) $( TESTBUILDDIR ) /testdata .lst $( TESTBUILDDIR ) /$( TESTDT ) iscii .res
2002-07-17 15:13:08 +00:00
2002-07-17 23:43:23 +00:00
# test.icu
$(TESTBUILDDIR)/$(TESTDT)test.icu : $( TOOLDIR ) /gentest /gentest $( EXEEXT )
2002-07-17 15:13:08 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /gentest/gentest -d $( TESTBUILDDIR)
$(TESTBUILDDIR)/$(TESTDT)%.cnv : $( TESTSRCDATADIR ) /%.ucm $( TOOLDIR ) /makeconv /makeconv $( EXEEXT )
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /makeconv/makeconv -p $( TESTDATA) -c -d $( TESTBUILDDIR) $( TESTSRCDATADIR) /$( <F)
$(TESTBUILDDIR)/$(TESTDT)%.res : $( TESTSRCDATADIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT )
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( TESTDATA) -q -s $( TESTSRCDATADIR) -d $( TESTBUILDDIR) $( <F)
2002-09-18 21:23:46 +00:00
$(TESTBUILDDIR)/$(TESTDT)iscii.res : $( TESTSRCDATADIR ) /iscii .bin $( TOOLDIR ) /genrb /genrb $( EXEEXT )
2002-10-02 17:08:52 +00:00
ICU_DATA = $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -q -s $( TESTSRCDATADIR) -p $( TESTDATA) -eISCII,version= 0 -d $( TESTBUILDDIR) $( <F) >/dev/null || ( echo "WARNING: could not open ISCII - it may have been disabled." | tee $@ )
2002-07-17 15:13:08 +00:00
################################################################### TYP
# TYP FILES
$(TESTOUTDIR)/$(TESTDT)nam.typ : $( TESTBUILDDIR ) /$( TESTDT ) te_IN .res
cp $< $@
testdata : $( ALL_TEST_FILES ) $( UNPACKAGEDTESTDATA )
packagetest : testdata icupkg .inc $( TESTBUILDDIR ) /testdata .lst
$( INVOKE) $( PKGDATA) -T $( TESTBUILDDIR) -d $( TESTOUTDIR) -s $( TESTBUILDDIR) -p $( TESTDATA) -m common $( TESTBUILDDIR) /testdata.lst