2002-01-24 17:32:12 +00:00
## Makefile.in for ICU data
2003-06-03 20:58:22 +00:00
## Copyright (c) 1999-2003, International Business Machines Corporation and
2002-01-24 17:32:12 +00:00
## 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) _
2003-09-23 00:29:28 +00:00
# Allow Windows to override these options
i f e q ( $( PKGDATA_OPTS ) , )
PKGDATA_OPTS = -O $( top_builddir) /data/icupkg.inc
e n d i f
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 )
2003-09-23 00:29:28 +00:00
PKGDATA = $( top_builddir) /tools/pkgdata/pkgdata $( PKGDATA_OPTS) -c -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
2003-08-15 18:18:46 +00:00
MISCSRCDIR = $( SRCDATADIR) /misc
2002-01-24 17:32:12 +00:00
BRKSRCDIR = $( SRCDATADIR) /brkitr
MISCSRCDIR = $( SRCDATADIR) /misc
UCMSRCDIR = $( SRCDATADIR) /mappings
2002-10-30 22:39:56 +00:00
COMINCDIR = $( top_srcdir) /common/unicode
2003-05-07 01:37:01 +00:00
SRCLISTDEPS = Makefile $( srcdir) /Makefile.in
2002-01-24 17:32:12 +00:00
# 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 \
2003-09-25 00:18:15 +00:00
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 c l e a n - r e s i n d e x
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 :
2003-05-30 23:39:47 +00:00
# During this INVOKE we only want to use stubdata.
# We don't want to try to write over files that we are using.
2003-09-23 00:29:28 +00:00
PKGDATA_INVOKE := $( subst :$( top_builddir) /data/out,,$( INVOKE) ) $( PKGDATA_INVOKE_OPTS)
2003-06-02 18:19:46 +00:00
2002-01-24 17:32:12 +00:00
packagedata : icupkg .inc $( BUILDDIR ) /icudata .lst
2003-06-02 18:19:46 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -e $( ICUDATA_ENTRY_POINT) -T $( BUILDDIR) -p $( ICUDATA_NAME) -m $( PKGDATA_MODE) $( PKGDATA_VERSIONING) $( BUILDDIR) /icudata.lst
2003-04-13 16:18:04 +00:00
i f n e q ( $( ENABLE_STATIC ) , )
2003-06-02 18:19:46 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -e $( ICUDATA_ENTRY_POINT) -T $( BUILDDIR) -p $( ICUDATA_NAME) -m static $( BUILDDIR) /icudata.lst
2003-04-13 16:18:04 +00:00
e n d i f
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)
2003-06-02 18:19:46 +00:00
$( PKGDATA_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)
2003-04-13 16:18:04 +00:00
i f n e q ( $( ENABLE_STATIC ) , )
2003-06-02 18:19:46 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -m static -e $( ICUDATA_ENTRY_POINT) -T $( BUILDDIR) -s $( BUILDDIR) -p $( ICUDATA_NAME) $( BUILDDIR) /icudata.lst -I $( DESTDIR) $( ICUPKGDATA_DIR)
2003-04-13 16:18:04 +00:00
e n d i f
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)
2003-03-19 01:56:39 +00:00
i f e q ( $( PKGDATA_MODE ) , d l l )
$( INSTALL-L) $( OUTDIR) /$( LIB_ICUDATA_NAME) $( STUB_SUFFIX) $( IMPORT_LIB_EXT) $( DESTDIR) $( ICUPKGDATA_DIR) /$( LIB_ICUDATA_NAME) $( STUB_SUFFIX) $( IMPORT_LIB_EXT)
e n d i f
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.
2003-08-21 00:21:31 +00:00
DAT_FILES_SHORT = uprops.icu pnames.icu unames.icu unorm.icu cnvalias.icu ucadata.icu invuca.icu uidna.spp
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-12-13 04:08:27 +00:00
ALL_UCM_SOURCE = ibm-37_P100-1995.ucm ibm-1047_P100-1995.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
2003-05-07 01:37:01 +00:00
- i n c l u d e $( LOCSRCDIR ) / r e s f i l e s . m k
2002-01-24 17:32:12 +00:00
- 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) /%)
2003-02-25 01:49:34 +00:00
INSTALLED_RB_FILES = $( GENRB_SOURCE:%.txt= %) $( GENRB_SOURCE_LOCAL:%.txt= %)
2002-11-15 22:20:33 +00:00
GENRBOPTS = -k -q
2002-01-24 17:32:12 +00:00
## TRNS files
2003-05-07 01:37:01 +00:00
- i n c l u d e $( TRNSSRCDIR ) / t r n s f i l e s . m k
2002-01-24 17:32:12 +00:00
- 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) /%)
2003-08-15 18:18:46 +00:00
## MISC files
- i n c l u d e $( MISCSRCDIR ) / m i s c f i l e s . m k
- i n c l u d e $( MISCSRCDIR ) / m i s c l o c a l . m k
MSC_SOURCE = $( MISC_SOURCE) $( MISC_SOURCE_LOCAL)
MSC_SRC_FILES = $( MSC_SOURCE:%= $( MISCSRCDIR) /%)
ALL_RES_SOURCE = $( RES_SOURCE) $( TRNS_SOURCE) $( MSC_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
2002-10-30 22:39:56 +00:00
$(BUILDDIR)/$(ICUDT)uprops.icu : $( UNICODEDATADIR ) /UnicodeData .txt $( UNICODEDATADIR ) /BidiMirroring .txt $( TOOLDIR ) /genprops /genprops $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) pnames .icu
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /genprops/genprops -s $( UNICODEDATADIR) -i $( BUILDDIR) -d $( BUILDDIR) -u $( UNICODE_VERSION)
2002-01-24 17:32:12 +00:00
2002-10-30 22:39:56 +00:00
# pnames.icu
$(BUILDDIR)/$(ICUDT)pnames.icu : $( UNICODEDATADIR ) /PropertyAliases .txt $( UNICODEDATADIR ) /PropertyValueAliases .txt $( UNICODEDATADIR ) /Blocks .txt $( COMINCDIR ) /uscript .h $( COMINCDIR ) /uchar .h $( TOOLDIR ) /genpname /genpname $( EXEEXT )
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /genpname/genpname -d $( BUILDDIR)
2002-10-30 22:39:56 +00:00
2002-07-17 23:43:23 +00:00
# unorm.icu
2003-07-28 15:47:39 +00:00
$(BUILDDIR)/$(ICUDT)unorm.icu : $( UNICODEDATADIR ) /UnicodeData .txt $( UNICODEDATADIR ) /DerivedNormalizationProps .txt $( UNICODEDATADIR ) /BidiMirroring .txt $( TOOLDIR ) /gennorm /gennorm $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) uprops .icu
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gennorm/gennorm -s $( UNICODEDATADIR) -d $( BUILDDIR) -u $( UNICODE_VERSION)
2002-01-24 17:32:12 +00:00
2002-07-17 23:43:23 +00:00
# ucadata.icu
2003-04-17 04:50:14 +00:00
$(BUILDDIR)/$(ICUDT)ucadata.icu $(BUILDDIR)/$(ICUDT)invuca.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 )
2003-09-17 02:41:45 +00:00
$( 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 )
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gencnval/gencnval -d $( BUILDDIR) $( UCMSRCDIR) /convrtrs.txt
2002-01-24 17:32:12 +00:00
2003-07-24 23:23:19 +00:00
# uidna.spp
2003-07-28 15:47:39 +00:00
$(BUILDDIR)/$(ICUDT)uidna.spp : $( MISCSRCDIR ) /NamePrepProfile .txt $( TOOLDIR ) /gensprep /gensprep $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) uprops .icu $( BUILDDIR ) /$( ICUDT ) unames .icu $( BUILDDIR ) /$( ICUDT ) pnames .icu
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gensprep/gensprep -d $( BUILDDIR) -i $( BUILDDIR) -s $( MISCSRCDIR) -b uidna -n $( UNICODEDATADIR) -u 3.2.0 -k NamePrepProfile.txt
2003-03-14 21:43:13 +00:00
2002-07-10 23:45:51 +00:00
#################################################### BRK
# BRK FILES
thaidict.brk : $( SRCDATADIR ) /thaidict .brk
$( RMV) $@ && ln -s $( BUILDDIR) $@
2003-07-28 15:47:39 +00:00
$(BUILDDIR)/$(ICUDT)%.brk : $( BRKSRCDIR ) /%.txt $( TOOLDIR ) /genbrk /genbrk $( EXEEXT ) $( DAT_FILES )
2003-09-15 22:41:14 +00:00
$( INVOKE) $( TOOLDIR) /genbrk/genbrk -i $( BUILDDIR) -r $< -o $@
2002-07-10 23:45:51 +00:00
2002-07-17 15:13:08 +00:00
#################################################### CNV
# CNV FILES
$(BUILDDIR)/$(ICUDT)%.cnv : $( UCMSRCDIR ) /%.ucm $( TOOLDIR ) /makeconv /makeconv $( EXEEXT )
2003-09-15 22:41:14 +00:00
$( INVOKE) $( TOOLDIR) /makeconv/makeconv -p $( ICUDATA_PLATFORM_NAME) -c -d $( BUILDDIR) $( UCMSRCDIR) /$( <F)
2002-07-17 15:13:08 +00:00
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
2003-07-28 15:47:39 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( LOCSRCDIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT ) $( DAT_FILES )
2003-09-15 22:41:14 +00:00
$( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -i $( BUILDDIR) -s $( LOCSRCDIR) -d $( BUILDDIR) $( <F)
2002-01-24 17:32:12 +00:00
2003-07-28 15:47:39 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( TRNSSRCDIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT ) $( DAT_FILES )
2003-09-15 22:41:14 +00:00
$( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -i $( BUILDDIR) -s $( TRNSSRCDIR) -d $( BUILDDIR) $( <F)
2002-01-24 17:32:12 +00:00
2003-08-15 18:18:46 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( MISCSRCDIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT )
2003-09-15 22:41:14 +00:00
$( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -i $( BUILDDIR) -s $( MISCSRCDIR) -d $( BUILDDIR) $( <F)
2003-08-15 18:18:46 +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 {" >> $@ ; \
2003-02-25 01:49:34 +00:00
echo " InstalledLocales {" >> $@ ; \
2002-05-13 17:26:51 +00:00
for file in $( INSTALLED_RB_FILES) ; do \
2003-02-25 01:49:34 +00:00
echo " $$ file {\"\"} " >> $@ ; \
2002-05-13 17:26:51 +00:00
done ; \
echo " }" >> $@ ; \
echo "}" >> $@ ;
2003-09-25 00:18:15 +00:00
clean-resindex :
-$( RMV) $( BUILDDIR) /res_index.txt $( BUILDDIR) /icudata.lst
2002-07-17 15:13:08 +00:00
$(BUILDDIR)/$(ICUDT)%.res : $( INDEX_FILES ) $( TOOLDIR ) /genrb /genrb $( EXEEXT )
2003-09-15 22:41:14 +00:00
$( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( ICUDATA_PLATFORM_NAME) -i $( BUILDDIR) -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-12-13 04:08:27 +00:00
UCMFILES390 = ebcdic-xml-us.ucm ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm ibm-4909_P100-1999.ucm
2002-10-30 22:39:56 +00:00
ALLFILES390 = uprops.icu pnames.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
2003-07-24 23:23:19 +00:00
TEST_DAT_FILES = $( TESTBUILDDIR) /$( TESTDT) test.icu $( TESTBUILDDIR) /$( TESTDT) nfscsi.spp $( TESTBUILDDIR) /$( TESTDT) nfscss.spp $( TESTBUILDDIR) /$( TESTDT) nfscis.spp $( TESTBUILDDIR) /$( TESTDT) nfsmxs.spp $( TESTBUILDDIR) /$( TESTDT) nfsmxp.spp
2002-07-17 15:13:08 +00:00
2003-11-19 18:43:30 +00:00
TEST_UCM_SOURCE = test1.ucm test3.ucm test4.ucm test4x.ucm ibm9027.ucm
2002-07-17 15:13:08 +00:00
TEST_UCM_FILES = $( TEST_UCM_SOURCE:%= $( TESTSRCDATADIR) /data/%)
TEST_CNV_FILES = $( TEST_UCM_SOURCE:%.ucm= $( TESTBUILDDIR) /$( TESTDT) %.cnv)
2003-09-25 00:18:15 +00:00
TEST_RES = casing.txt mc.txt root.txt te.txt te_IN.txt testtypes.txt testaliases.txt testempty.txt DataDrivenCollationTest.txt idna_rules.txt conversion.txt testtable32.txt
2003-11-21 18:31:20 +00:00
TEST_RES_FILES = $( TEST_RES:%.txt= $( TESTBUILDDIR) /$( TESTDT) %.res) $( TESTBUILDDIR) /$( TESTDT) iscii.res $( TESTSRCDATADIR) /$( TESTDT) icu26_testtypes.res $( TESTSRCDATADIR) /$( TESTDT) icu26e_testtypes.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 )
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gentest/gentest -d $( TESTBUILDDIR)
2002-07-17 15:13:08 +00:00
2003-09-25 00:18:15 +00:00
$(TESTBUILDDIR)/testtable32.txt : $( TOOLDIR ) /gentest /gentest $( EXEEXT )
$( INVOKE) $( TOOLDIR) /gentest/gentest -r -d $( TESTBUILDDIR)
$(TESTBUILDDIR)/$(TESTDT)testtable32.res : $( TESTBUILDDIR ) /testtable 32.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT )
$( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( TESTDATA) -q -s $( TESTBUILDDIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) $( <F)
2003-09-17 02:41:45 +00:00
# Targets for nfscsi.spp
2003-07-25 00:29:50 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfscsi.spp : $( TOOLDIR ) /gensprep /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_cs_prep_ci .txt
2003-07-24 23:23:19 +00:00
@echo Building nfscsi.icu
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gensprep/gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfscsi -p $( TESTDATA) -u 3.2.0 nfs4_cs_prep_ci.txt
2003-07-24 23:23:19 +00:00
2003-09-17 02:41:45 +00:00
# Targets for nfscss.spp
2003-07-25 00:29:50 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfscss.spp : $( TOOLDIR ) /gensprep /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_cs_prep_cs .txt
2003-07-24 23:23:19 +00:00
@echo Building nfscss.icu
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gensprep/gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfscss -p $( TESTDATA) -u 3.2.0 nfs4_cs_prep_cs.txt
2003-07-24 23:23:19 +00:00
# Targets for nfscis.spp
$(TESTBUILDDIR)/$(TESTDT)nfscis.spp : $( TOOLDIR ) /gensprep /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_cis_prep .txt
@echo Building nfscis.spp
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gensprep/gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfscis -p $( TESTDATA) -k -n $( UNICODEDATADIR) -u 3.2.0 nfs4_cis_prep.txt
2003-07-24 23:23:19 +00:00
# Targets for nfsmxs.spp
$(TESTBUILDDIR)/$(TESTDT)nfsmxs.spp : $( TOOLDIR ) /gensprep /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_mixed_prep_s .txt
@echo Building nfsmxs.spp
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gensprep/gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfsmxs -p $( TESTDATA) -k -n $( UNICODEDATADIR) -u 3.2.0 nfs4_mixed_prep_s.txt
2003-07-24 23:23:19 +00:00
# Targets for nfsmxp.spp
$(TESTBUILDDIR)/$(TESTDT)nfsmxp.spp : $( TOOLDIR ) /gensprep /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_mixed_prep_p .txt
@echo Building nfsmxp.spp
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gensprep/gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfsmxp -p $( TESTDATA) -k -n $( UNICODEDATADIR) -u 3.2.0 nfs4_mixed_prep_p.txt
2003-07-24 23:23:19 +00:00
2002-07-17 15:13:08 +00:00
$(TESTBUILDDIR)/$(TESTDT)%.cnv : $( TESTSRCDATADIR ) /%.ucm $( TOOLDIR ) /makeconv /makeconv $( EXEEXT )
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /makeconv/makeconv -p $( TESTDATA) -c -d $( TESTBUILDDIR) $( TESTSRCDATADIR) /$( <F)
2002-07-17 15:13:08 +00:00
$(TESTBUILDDIR)/$(TESTDT)%.res : $( TESTSRCDATADIR ) /%.txt $( TOOLDIR ) /genrb /genrb $( EXEEXT )
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -p $( TESTDATA) -q -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) $( <F)
2002-07-17 15:13:08 +00:00
2002-09-18 21:23:46 +00:00
$(TESTBUILDDIR)/$(TESTDT)iscii.res : $( TESTSRCDATADIR ) /iscii .bin $( TOOLDIR ) /genrb /genrb $( EXEEXT )
2003-06-02 23:26:20 +00:00
@echo Testing genrb -e option
@ICU_DATA= $( BUILDDIR) $( INVOKE) $( TOOLDIR) /genrb/genrb $( GENRBOPTS) -s $( TESTSRCDATADIR) -p $( TESTDATA) -eISCII,version= 0 -d $( TESTBUILDDIR) $( <F) >/dev/null || ( echo "WARNING: could not open ISCII - it may have been disabled." | tee $@ )
@echo Finished testing genrb -e option
2002-07-17 15:13:08 +00:00
################################################################### TYP
# TYP FILES
$(TESTOUTDIR)/$(TESTDT)nam.typ : $( TESTBUILDDIR ) /$( TESTDT ) te_IN .res
cp $< $@
2003-07-28 15:47:39 +00:00
testdata : packagedata $( ALL_TEST_FILES ) $( UNPACKAGEDTESTDATA )
2002-07-17 15:13:08 +00:00
packagetest : testdata icupkg .inc $( TESTBUILDDIR ) /testdata .lst
2003-09-23 00:29:28 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -T $( TESTBUILDDIR) -d $( TESTOUTDIR) -s $( TESTBUILDDIR) -p $( TESTDATA) -m common $( TESTBUILDDIR) /testdata.lst
2002-07-17 15:13:08 +00:00