2000-08-29 07:28:22 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# Copyright (C) 1998-2000, International Business Machines
|
|
|
|
# Corporation and others. All Rights Reserved.
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
2000-12-01 17:20:26 +00:00
|
|
|
## ICU data directory. This is the directory where the final packaging
|
|
|
|
## of data goes, + some test data.
|
|
|
|
##
|
|
|
|
## Point ICU_DATA to this directory.
|
|
|
|
##
|
2000-08-29 07:28:22 +00:00
|
|
|
## Stephen F. Booth
|
2000-12-01 17:20:26 +00:00
|
|
|
## Steven R. Loomis
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
## Install directory information
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
2000-10-26 19:28:33 +00:00
|
|
|
top_builddir = ..
|
|
|
|
|
|
|
|
include $(top_builddir)/icudefs.mk
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = data
|
|
|
|
|
|
|
|
## Platform-specific setup
|
2000-10-24 19:50:20 +00:00
|
|
|
include @platform_make_fragment@
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
## Files to remove for 'make clean'
|
2000-12-01 17:20:26 +00:00
|
|
|
CLEANFILES = *~ $(SPECIALTESTDATA)
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
DOCDIRS =
|
2000-12-01 17:20:26 +00:00
|
|
|
SUBDIRS = build
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
## Extra files to install [nothing at present]
|
2000-12-01 17:20:26 +00:00
|
|
|
SPECIALTESTDATA=test1.cnv test3.cnv test4.cnv
|
|
|
|
TESTDATAOBJDIR=../test/testdata
|
|
|
|
top_builddir_from_tmp = $(patsubst ..%,../..%,$(top_builddir))
|
|
|
|
INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(top_builddir_from_tmp)/common:$(top_builddir_from_tmp)/tools/toolutil:$$$(LDLIBRARYPATH_ENVVAR)
|
|
|
|
CURDIR=$(shell /bin/pwd)
|
|
|
|
PKGDATA = $(top_builddir_from_tmp)/tools/pkgdata/pkgdata -O $(top_builddir_from_tmp)/tools/pkgdata/icupkg.inc -d $(CURDIR) -m $(PKGDATA_MODE)
|
|
|
|
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
## List of phony targets
|
2000-12-13 03:12:29 +00:00
|
|
|
.PHONY : all all-local all-recursive install install-local install-udata install-udata-files install-udata-dlls install-convrtrstxt \
|
2000-08-29 07:28:22 +00:00
|
|
|
install-recursive clean clean-local clean-recursive distclean \
|
|
|
|
distclean-local distclean-recursive doc dist dist-local dist-recursive \
|
|
|
|
check check-local check-recursive builddata
|
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
2000-12-01 17:20:26 +00:00
|
|
|
all: all-recursive
|
|
|
|
install: install-recursive
|
|
|
|
clean: clean-recursive
|
2000-08-29 07:28:22 +00:00
|
|
|
distclean : distclean-recursive distclean-local
|
|
|
|
dist: dist-recursive dist-local
|
|
|
|
check: all check-recursive check-local
|
|
|
|
|
|
|
|
## Recursive targets
|
|
|
|
all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
|
|
|
|
@dot_seen=no; \
|
|
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
|
|
echo "Making $$target in $$subdir"; \
|
|
|
|
if test "$$subdir" = "."; then \
|
|
|
|
dot_seen=yes; \
|
|
|
|
local_target="$$target-local"; \
|
|
|
|
else \
|
|
|
|
local_target="$$target"; \
|
|
|
|
fi; \
|
|
|
|
(cd $$subdir && $(MAKE) $$local_target) || exit; \
|
|
|
|
done; \
|
|
|
|
if test "$$dot_seen" = "no"; then \
|
|
|
|
$(MAKE) "$$target-local" || exit; \
|
|
|
|
fi
|
|
|
|
|
2000-12-05 18:33:14 +00:00
|
|
|
ifeq ($(OS390BATCH),1)
|
|
|
|
OS390PKG= package390
|
|
|
|
endif
|
|
|
|
|
|
|
|
all-local: packagedata testdata packagetest $(OS390PKG)
|
2000-12-01 17:20:26 +00:00
|
|
|
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
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
|
|
|
|
|
|
|
clean-local: cleanpackage cleanfiles
|
|
|
|
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2000-10-02 23:37:16 +00:00
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
2000-08-29 07:28:22 +00:00
|
|
|
check-local:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
2000-10-20 01:23:05 +00:00
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2000-12-01 17:20:26 +00:00
|
|
|
packagedata: build/icudata.lst $(top_builddir)/tools/pkgdata/icupkg.inc
|
2000-12-06 06:28:08 +00:00
|
|
|
( cd build ; $(INVOKE) $(PKGDATA) -e icudata -s . -T . -p $(ICUDATA_NAME) icudata.lst )
|
2000-12-01 17:20:26 +00:00
|
|
|
|
|
|
|
packagetest: $(TESTDATAOBJDIR)/testdata.lst $(top_builddir)/tools/pkgdata/icupkg.inc
|
|
|
|
( cd $(TESTDATAOBJDIR) ; $(INVOKE) $(PKGDATA) -T . -s . -p testdata testdata.lst )
|
|
|
|
|
|
|
|
cleanpackage:
|
|
|
|
@echo Cleaning up packaged data..
|
|
|
|
@-( cd build ; $(INVOKE) $(PKGDATA) -s . -T . -p $(ICUDATA_NAME) icudata.lst --clean 2> /dev/null)
|
|
|
|
@-( cd $(TESTDATAOBJDIR) ; $(INVOKE) $(PKGDATA) -T . -s . -p testdata testdata.lst --clean 2> /dev/null )
|
|
|
|
$(RMV) $(ICUDATA_NAME).* build/icudata.lst build/*.mak
|
|
|
|
|
|
|
|
## Install ICU data. Make a convenience link 'icudata' library if it's a library mode.
|
2000-12-13 03:12:29 +00:00
|
|
|
install-local: build/icudata.lst $(top_builddir)/tools/pkgdata/icupkg.inc install-convrtrstxt
|
2000-12-01 17:20:26 +00:00
|
|
|
$(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(ICUDATA_DIR)/$(VERSION)
|
2000-12-06 06:28:08 +00:00
|
|
|
( cd build ; $(INVOKE) $(PKGDATA) -e icudata -T . -s . -p $(ICUDATA_NAME) icudata.lst -I $(DESTDIR)$(ICUDATA_DIR)/$(VERSION) )
|
2000-12-01 17:20:26 +00:00
|
|
|
ifeq ($(strip $(PKGDATA_MODE)),dll)
|
|
|
|
(cd $(DESTDIR)$(ICUDATA_DIR)/$(VERSION); $(RM) icudata.$(SO) && ln -s $(ICUDATA_NAME).$(SO) icudata.$(SO))
|
|
|
|
endif
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2000-12-13 03:12:29 +00:00
|
|
|
install-convrtrstxt: $(top_srcdir)/../data/convrtrs.txt
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(pkgsysconfdir)
|
|
|
|
$(INSTALL_DATA) $< $(DESTDIR)$(pkgsysconfdir
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2000-12-01 17:20:26 +00:00
|
|
|
# specials
|
|
|
|
testdata: $(SPECIALTESTDATA)
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2000-12-01 17:20:26 +00:00
|
|
|
%.cnv: build/%.cnv
|
2000-12-04 17:48:45 +00:00
|
|
|
ln -sf $< .
|
|
|
|
|
2000-12-05 18:33:14 +00:00
|
|
|
###################
|
|
|
|
###################
|
|
|
|
################### 390 support
|
|
|
|
package390: build/icudata390.lst build/icudata.lst $(top_builddir)/tools/pkgdata/icupkg.inc
|
|
|
|
@$(MKINSTALLDIRS) tmp390A
|
|
|
|
@$(MKINSTALLDIRS) tmp3901
|
|
|
|
( cd build ; $(INVOKE) $(PKGDATA) -s . -T ../tmp390A -p IXMICUDA icudata.lst )
|
|
|
|
( cd build ; $(INVOKE) $(PKGDATA) -s . -T ../tmp3901 -p IXMICUD1 icudata390.lst )
|