2016-06-15 18:58:17 +00:00
# Copyright (C) 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html
2000-01-14 16:20:17 +00:00
#******************************************************************************
#
2016-05-31 21:45:07 +00:00
# Copyright (C) 1998-2016, International Business Machines
# Corporation and others. All Rights Reserved.
2000-01-14 16:20:17 +00:00
#
#******************************************************************************
1999-08-16 21:50:52 +00:00
## Top-level Makefile.in for ICU
## Stephen F. Booth
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = .
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
1999-08-16 21:50:52 +00:00
2001-11-11 06:58:13 +00:00
docdir = $( datadir) /doc
2002-03-02 22:16:01 +00:00
docsubdir = $( PACKAGE) $( ICULIBDASHSUFFIX) /html
2009-09-24 20:46:27 +00:00
docfilesdir = doc/html
2012-08-09 19:39:44 +00:00
docfiles = $( docfilesdir) /*.png $( docfilesdir) /*.html $( docfilesdir) /*.css $( docfilesdir) /*.tag
2009-09-24 20:46:27 +00:00
docsrchdir = $( docfilesdir) /search
docsrchfiles = $( docsrchdir) /*
2001-11-11 06:58:13 +00:00
2000-10-24 19:50:20 +00:00
##
1999-08-16 21:50:52 +00:00
2000-10-26 19:28:33 +00:00
## Build directory information
subdir = .
2004-04-01 00:21:58 +00:00
#AUTOCONF = @AUTOCONF@
1999-08-16 21:50:52 +00:00
## Optional directory setup
2014-09-10 02:20:50 +00:00
@ L A Y O U T E X _ T R U E @ LAYOUTEX = layoutex
2004-05-05 23:03:04 +00:00
@ I C U I O _ T R U E @ ICUIO = io
@ E X T R A S _ T R U E @ EXTRA = extra
1999-08-16 21:50:52 +00:00
@ T E S T S _ T R U E @ TEST = test
@ S A M P L E S _ T R U E @ SAMPLE = samples
2013-08-30 20:47:42 +00:00
@ T O O L S _ T R U E @ TOOLS = tools
1999-08-16 21:50:52 +00:00
2012-08-17 23:27:37 +00:00
## pkgconfig setup. Always have uc and i18n. Others are optional.
ALL_PKGCONFIG_SUFFIX = uc i18n
2014-09-10 02:20:50 +00:00
@ L A Y O U T E X _ T R U E @ ALL_PKGCONFIG_SUFFIX += lx
2012-08-17 23:27:37 +00:00
@ I C U I O _ T R U E @ ALL_PKGCONFIG_SUFFIX += io
2001-11-11 06:58:13 +00:00
DOXYGEN = @DOXYGEN@
2008-05-28 21:40:18 +00:00
DOCZIP = icu-docs.zip
2001-11-11 06:58:13 +00:00
1999-08-16 21:50:52 +00:00
## Files to remove for 'make clean'
2008-05-28 21:40:18 +00:00
CLEANFILES = *~
1999-08-16 21:50:52 +00:00
2010-08-30 18:59:02 +00:00
ALL_PKGCONFIG_FILES = $( ALL_PKGCONFIG_SUFFIX:%= $( top_builddir) /config/icu-%.pc)
2002-05-07 03:09:19 +00:00
## Files built (autoconfed) and installed
2010-08-30 18:59:02 +00:00
INSTALLED_BUILT_FILES = $( top_builddir) /config/Makefile.inc $( top_builddir) /config/pkgdata.inc $( top_builddir) /config/icu-config @platform_make_fragment@ $( EXTRA_DATA:%= $( DESTDIR) $( pkglibdir) /%) $( ALL_PKGCONFIG_FILES)
2002-05-07 03:09:19 +00:00
## Files built (autoconfed) but not installed
2013-01-23 22:20:45 +00:00
LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk config/icucross.inc
2002-05-07 03:09:19 +00:00
1999-08-16 21:50:52 +00:00
DOCDIRS = common i18n
2016-09-09 21:28:18 +00:00
SUBDIRS = stubdata common i18n $( LAYOUTEX) $( ICUIO) $( TOOLS) data $( EXTRA) $( SAMPLE) $( TEST)
1999-08-16 21:50:52 +00:00
2002-05-23 23:45:40 +00:00
SECTION = 1
MANX_FILES = config/icu-config.$( SECTION)
ALL_MAN_FILES = $( MANX_FILES)
2000-06-13 19:44:38 +00:00
## Extra files to install [nothing at present]
EXTRA_DATA =
1999-08-16 21:50:52 +00:00
## List of phony targets
1999-11-23 04:49:35 +00:00
.PHONY : all all -local all -recursive install install -local install -udata install -udata -files install -udata -dlls \
1999-08-16 21:50:52 +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 \
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 o c 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 \
2001-11-11 06:58:13 +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 c l e a n - r e c u r s i v e - w i t h - t w i s t i n s t a l l - i c u \
2011-11-14 22:33:19 +00:00
d o c i n s t a l l - d o c t e s t s i c u 4 j - d a t a i c u 4 j - d a t a - i n s t a l l u p d a t e - w i n d o w s - m a k e f i l e s x c h e c k - l o c a l x c h e c k - r e c u r s i v e x p e r f x c h e c k x p e r f - r e c u r s i v e \
2011-11-16 22:03:45 +00:00
c h e c k - e x h a u s t i v e c h e c k - e x h a u s t i v e - l o c a l c h e c k - e x h a u s t i v e - r e c u r s i v e r e l e a s e D i s t
1999-08-16 21:50:52 +00:00
## Clear suffix list
.SUFFIXES :
## List of standard targets
2000-07-11 17:52:01 +00:00
all : all -local all -recursive
1999-08-16 21:50:52 +00:00
install : install -recursive install -local
2000-10-02 23:37:16 +00:00
clean : clean -recursive -with -twist clean -local
1999-08-16 21:50:52 +00:00
distclean : distclean -recursive distclean -local
dist : dist -recursive dist -local
2008-10-10 16:52:15 +00:00
check : all check -recursive
2004-03-11 06:44:56 +00:00
check-recursive : all
2010-07-12 15:24:57 +00:00
xcheck : all xcheck -recursive
2010-08-05 00:26:41 +00:00
xperf : all xperf -recursive
2011-11-14 22:33:19 +00:00
check-exhaustive : all check -exhaustive -recursive
2010-07-12 15:24:57 +00:00
2013-09-04 02:09:29 +00:00
pcheck : all tests
@$( MAKE) -C test pcheck
2011-11-15 17:22:33 +00:00
check-exhaustive-local : check -local
2010-07-12 15:24:57 +00:00
xcheck-recursive : all xcheck -local
@$( MAKE) -C test xcheck
1999-08-16 21:50:52 +00:00
2010-08-05 00:26:41 +00:00
xperf-recursive : all tests
@$( MAKE) -C test/perf xperf
2011-12-15 23:16:20 +00:00
$(top_builddir)/config/icuinfo.xml : all
@$( MAKE) -C tools/icuinfo check
2001-11-11 07:22:54 +00:00
i f e q ( $( DOXYGEN ) , )
2011-09-15 21:49:17 +00:00
doc doc-searchengine :
2002-01-04 23:48:46 +00:00
@echo you need Doxygen to generate documentation. Doxygen can be found on the Web
@echo at http://www.doxygen.org/
2001-11-11 07:22:54 +00:00
e l s e
2002-02-25 08:11:57 +00:00
doc : doc /html /index .html
2016-09-09 21:28:18 +00:00
doc-searchengine : Doxyfile $( wildcard ./common /unicode /platform .h $ ( srcdir ) /common /unicode /*.h $ ( srcdir ) /i 18n /unicode /*.h $ ( srcdir ) /io /unicode /*.h )
2011-09-15 21:49:17 +00:00
sed < Doxyfile -e 's%[^#]*SEARCHENGINE.*%SEARCHENGINE=YES%' | $( DOXYGEN) -
2012-08-21 21:01:03 +00:00
@echo adding links from non-namespaced class files
find doc/html -name 'classicu_1_1*' -print | sed -e 's%^\(.*class\)icu_1_1\(.*\)$$%ln & \1\2%' | sh
2011-09-15 21:49:17 +00:00
@echo Docs created - WARNING, probably contains non-GPL .js files
2016-09-09 21:28:18 +00:00
doc/html/index.html : Doxyfile $( wildcard ./common /unicode /platform .h $ ( srcdir ) /common /unicode /*.h $ ( srcdir ) /i 18n /unicode /*.h $ ( srcdir ) /io /unicode /*.h )
2001-11-11 06:58:13 +00:00
$( DOXYGEN)
2012-08-21 21:01:03 +00:00
@echo adding links from non-namespaced class files
find doc/html -name 'classicu_1_1*' -print | sed -e 's%^\(.*class\)icu_1_1\(.*\)$$%ln & \1\2%' | sh
2001-11-11 06:58:13 +00:00
Doxyfile : $( srcdir ) /Doxyfile .in
CONFIG_FILES = $@ CONFIG_HEADERS = $( SHELL) ./config.status
2008-05-28 21:40:18 +00:00
$(DOCZIP) : doc
-$( RMV) $( DOCZIP)
( cd doc/html ; zip -r ../../$( DOCZIP) * )
2001-11-11 07:22:54 +00:00
e n d i f
2001-11-11 06:58:13 +00:00
2000-10-02 23:37:16 +00:00
LOCAL_SUBDIRS = $( SUBDIRS)
2013-08-30 20:47:42 +00:00
CLEAN_FIRST_SUBDIRS = $( TOOLS)
2000-10-02 23:37:16 +00:00
2004-03-26 01:22:25 +00:00
$(LIBDIR) $(BINDIR) :
-$( MKINSTALLDIRS) $@
1999-08-16 21:50:52 +00:00
## Recursive targets
2011-11-14 22:33:19 +00:00
all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive check-exhaustive-recursive : $( LIBDIR ) $( BINDIR )
2017-03-15 02:16:35 +00:00
i f n e q ( $( NEED_ESCAPING ) , )
@echo "building tools/escapesrc (Needed for this platform with NEED_ESCAPING)"
2017-03-13 23:19:33 +00:00
@( cd tools/escapesrc && $( MAKE) RECURSIVE = YES $$ local_target) || exit
2017-03-15 02:16:35 +00:00
e n d i f
1999-08-16 21:50:52 +00:00
@dot_seen= no; \
target = ` echo $@ | sed s/-recursive//` ; \
2000-10-02 23:37:16 +00:00
list = '$(LOCAL_SUBDIRS)' ; for subdir in $$ list; do \
2002-01-04 23:48:46 +00:00
echo " $( MAKE) [ $( MAKELEVEL) ]: Making \` $$ target' in \` $$ subdir' " ; \
1999-08-16 21:50:52 +00:00
if test " $$ subdir " = "." ; then \
dot_seen = yes; \
local_target = " $$ target-local " ; \
else \
local_target = " $$ target " ; \
fi ; \
2000-10-24 19:50:20 +00:00
( cd $$ subdir && $( MAKE) RECURSIVE = YES $$ local_target) || exit; \
1999-08-16 21:50:52 +00:00
done ; \
if test " $$ dot_seen " = "no" ; then \
2000-08-11 22:08:11 +00:00
$( MAKE) " $$ target-local " || exit; \
1999-08-16 21:50:52 +00:00
fi
2000-10-02 23:37:16 +00:00
clean-recursive-with-twist :
2000-10-03 00:01:27 +00:00
$( MAKE) clean-recursive LOCAL_SUBDIRS = '$(CLEAN_FIRST_SUBDIRS) $(filter-out $(CLEAN_FIRST_SUBDIRS),$(LOCAL_SUBDIRS))'
2000-10-02 23:37:16 +00:00
2002-05-07 03:09:19 +00:00
all-local : $( srcdir ) /configure $( LOCAL_BUILT_FILES ) $( INSTALLED_BUILT_FILES )
2012-09-11 00:00:37 +00:00
i f n d e f V E R B O S E
@echo " Note: rebuild with \" $( MAKE) VERBOSE=1 $( MAKECMDGOALS) \" to show all compiler parameters. "
e n d i f
2002-11-14 18:44:13 +00:00
install-local : install -icu install -manx
2002-05-23 23:45:40 +00:00
2014-09-10 02:20:50 +00:00
# always installs. Used by layoutex.
install-pkgconfig : $( ALL_PKGCONFIG_FILES )
@$( MKINSTALLDIRS) $( DESTDIR) $( libdir) /pkgconfig
$( INSTALL_DATA) $( ALL_PKGCONFIG_FILES) $( DESTDIR) $( libdir) /pkgconfig/
2002-05-07 03:09:19 +00:00
install-icu : $( INSTALLED_BUILT_FILES )
2001-11-10 02:21:37 +00:00
@$( MKINSTALLDIRS) $( DESTDIR) $( pkgdatadir) /config
@$( MKINSTALLDIRS) $( DESTDIR) $( pkglibdir)
2002-06-11 22:23:05 +00:00
@$( MKINSTALLDIRS) $( DESTDIR) $( bindir)
2000-10-13 00:26:21 +00:00
@$( MKINSTALLDIRS) $( DESTDIR) $( sbindir)
2001-11-10 02:21:37 +00:00
$( INSTALL_DATA) @platform_make_fragment@ $( DESTDIR) $( pkgdatadir) /config/@platform_make_fragment_name@
2000-10-13 00:26:21 +00:00
$( INSTALL_SCRIPT) $( top_srcdir) /mkinstalldirs $( DESTDIR) $( pkgdatadir) /mkinstalldirs
2007-09-20 16:19:52 +00:00
$( INSTALL_SCRIPT) $( top_srcdir) /install-sh $( DESTDIR) $( pkgdatadir) /install-sh
2010-04-29 03:52:08 +00:00
@$( MKINSTALLDIRS) $( DESTDIR) $( libdir) /pkgconfig
2010-08-30 18:59:02 +00:00
$( INSTALL_DATA) $( ALL_PKGCONFIG_FILES) $( DESTDIR) $( libdir) /pkgconfig/
2016-03-02 18:20:23 +00:00
$( INSTALL_DATA) $( top_srcdir) /../LICENSE $( DESTDIR) $( pkgdatadir) /LICENSE
2003-05-25 08:05:49 +00:00
$( INSTALL_SCRIPT) $( top_builddir) /config/icu-config $( DESTDIR) $( bindir) /icu-config
2004-11-17 20:41:21 +00:00
$( INSTALL_DATA) $( top_builddir) /config/Makefile.inc $( DESTDIR) $( pkglibdir) /Makefile.inc
2008-12-01 21:57:14 +00:00
$( INSTALL_DATA) $( top_builddir) /config/pkgdata.inc $( DESTDIR) $( pkglibdir) /pkgdata.inc
2011-12-15 23:16:20 +00:00
# @echo icuinfo.xml is built after make check.
# -$(INSTALL_DATA) $(top_builddir)/config/icuinfo.xml $(DESTDIR)$(pkglibdir)/icuinfo.xml
2004-11-17 20:41:21 +00:00
cd $( DESTDIR) $( pkglibdir) /..; \
$( RM) current && ln -s $( VERSION) current; \
2008-12-01 21:57:14 +00:00
$( RM) Makefile.inc && ln -s current/Makefile.inc Makefile.inc; \
$( RM) pkgdata.inc && ln -s current/pkgdata.inc pkgdata.inc
2002-05-07 03:09:19 +00:00
2001-11-11 07:22:54 +00:00
i f e q ( $( DOXYGEN ) , )
install-doc :
e l s e
2001-11-11 06:58:13 +00:00
install-doc : doc
$( RM) -r $( DESTDIR) $( docdir) /$( docsubdir)
2012-08-09 19:39:44 +00:00
$( MKINSTALLDIRS) $( DESTDIR) $( docdir) /$( docsubdir)
2009-09-24 20:46:27 +00:00
$( INSTALL_DATA) $( docfiles) $( DESTDIR) $( docdir) /$( docsubdir)
2012-08-09 19:39:44 +00:00
2001-11-11 07:22:54 +00:00
e n d i f
1999-08-16 21:50:52 +00:00
2001-11-10 02:21:37 +00:00
$(DESTDIR)$(pkglibdir)/% : $( top_srcdir ) /../data /%
2000-07-11 17:52:01 +00:00
$( INSTALL_DATA) $< $@
2007-07-09 20:50:46 +00:00
# Build the tests, but don't run them.
tests : all
$( MAKE) -C $( top_builddir) /test
1999-08-16 21:50:52 +00:00
clean-local :
2000-05-15 22:32:11 +00:00
test -z " $( CLEANFILES) " || $( RMV) $( CLEANFILES)
2010-07-12 15:24:57 +00:00
-$( RMV) "test-*.xml"
2010-08-05 00:26:41 +00:00
-$( RMV) "perf-*.xml"
2011-12-15 23:16:20 +00:00
-$( RMV) $( ALL_PKGCONFIG_FILES) $( top_builddir) /config/icuinfo.xml
2008-05-28 21:40:18 +00:00
$( RMV) Doxyfile doc $( DOCZIP)
1999-08-16 21:50:52 +00:00
2000-04-10 23:24:53 +00:00
distclean-local : clean -local
2010-08-30 18:59:02 +00:00
$( RMV) $( top_builddir) /config/Makefile.inc $( top_builddir) /config/pkgdata.inc $( top_builddir) /config/icu-config $( top_builddir) /config/icu.pc $( ALL_PKGCONFIG_FILES)
2013-01-23 22:20:45 +00:00
$( RMV) config.cache config.log config.status $( top_builddir) /config/icucross.mk $( top_builddir) /config/icucross.inc autom4te.cache uconfig.h.prepend
2006-11-28 01:39:50 +00:00
$( RMV) Makefile config/Makefile icudefs.mk $( LIBDIR) $( BINDIR)
2010-07-14 20:44:40 +00:00
-$( RMV) dist
1999-08-16 21:50:52 +00:00
2010-07-12 15:24:57 +00:00
check-local : xcheck -local
-$( RMV) test-local.xml
xcheck-local : $( top_builddir ) /config /icu -config $( top_builddir ) /config /Makefile .inc $( top_builddir ) /config /pkgdata .inc
2008-10-10 16:52:15 +00:00
@echo verifying that icu-config --selfcheck can operate
@test "passed" = " $( shell $( top_builddir) /config/icu-config --selfcheck 2>& 1) " || ( echo "FAIL: icu-config could not run properly." ; exit 1)
@echo verifying that $( MAKE) -f Makefile.inc selfcheck can operate
@test "passed" = " $( shell $( MAKE) --no-print-directory -f $( top_builddir) /config/Makefile.inc SELFCHECK = 1 selfcheck) " || ( echo "FAIL: Makefile.inc could not run properly." ; exit 1 )
@echo "PASS: config selfcheck OK"
1999-08-16 21:50:52 +00:00
2013-09-04 04:55:27 +00:00
#$(srcdir)/configure : $(srcdir)/configure.ac $(top_srcdir)/aclocal.m4
# cd $(srcdir) && aclocal && $(AUTOCONF)
1999-08-16 21:50:52 +00:00
2000-10-24 19:50:20 +00:00
icudefs.mk : $( srcdir ) /icudefs .mk .in $( top_builddir ) /config .status
cd $( top_builddir) \
&& CONFIG_FILES = $( subdir) /$@ CONFIG_HEADERS = $( SHELL) ./config.status
2009-04-01 01:54:14 +00:00
config/icucross.mk : $( top_builddir ) /icudefs .mk $( top_builddir ) /Makefile
@echo rebuilding $@
@( echo " CROSS_ICU_VERSION= $( VERSION) " ; \
echo " TOOLEXEEXT= $( EXEEXT) " \
) > $@
@( echo 'TOOLBINDIR=$$(cross_buildroot)/bin' ; \
echo 'TOOLLIBDIR=$$(cross_buildroot)/lib' ; \
echo " INVOKE= $( LDLIBRARYPATH_ENVVAR) = $( LIBRARY_PATH_PREFIX) " '$$(TOOLLIBDIR):$$(cross_buildroot)/stubdata:$$(cross_buildroot)/tools/ctestfw:$$$$' " $( LDLIBRARYPATH_ENVVAR) " ; \
2012-05-17 19:58:22 +00:00
echo " PKGDATA_INVOKE= $( LDLIBRARYPATH_ENVVAR) = $( LIBRARY_PATH_PREFIX) " '$$(cross_buildroot)/stubdata:$$(cross_buildroot)/tools/ctestfw:$$(TOOLLIBDIR):$$$$' " $( LDLIBRARYPATH_ENVVAR) " ; \
2009-04-01 01:54:14 +00:00
echo ) >> $@
2013-01-23 22:20:45 +00:00
config/icucross.inc : $( top_builddir ) /icudefs .mk $( top_builddir ) /Makefile @platform_make_fragment @
@echo rebuilding $@
@( grep '^CURR_FULL_DIR' $( top_builddir) /icudefs.mk ; \
2013-01-31 21:28:51 +00:00
grep '^CURR_FULL_DIR' @platform_make_fragment@ || echo "" ; \
2013-01-23 22:20:45 +00:00
) > $@
2010-04-29 03:52:08 +00:00
config/icu.pc : $( srcdir ) /config /icu .pc .in
cd $( top_builddir) \
&& CONFIG_FILES = $( subdir) /$@ CONFIG_HEADERS = $( SHELL) ./config.status
2010-08-30 18:59:02 +00:00
config/icu-uc.pc : config /icu .pc Makefile icudefs .mk
@cat config/icu.pc > $@
@echo " Description: $( PACKAGE_ICU_DESCRIPTION) : Common and Data libraries " >> $@
@echo " Name: $( PACKAGE) -uc " >> $@
@echo "Libs:" '-L$${libdir}' " ${ ICULIBS_UC } " " ${ ICULIBS_DT } " >> $@
@echo "Libs.private:" '$${baselibs}' >> $@
@echo $@ updated.
config/icu-i18n.pc : config /icu .pc Makefile icudefs .mk
@cat config/icu.pc > $@
@echo " Description: $( PACKAGE_ICU_DESCRIPTION) : Internationalization library " >> $@
@echo " Name: $( PACKAGE) -i18n " >> $@
@echo "Requires: icu-uc" >> $@
@echo "Libs:" " ${ ICULIBS_I18N } " >> $@
@echo $@ updated.
config/icu-io.pc : config /icu .pc Makefile icudefs .mk
2010-04-29 03:52:08 +00:00
@cat config/icu.pc > $@
2010-08-30 18:59:02 +00:00
@echo " Description: $( PACKAGE_ICU_DESCRIPTION) : Stream and I/O Library " >> $@
@echo " Name: $( PACKAGE) -io " >> $@
@echo "Requires: icu-i18n" >> $@
@echo "Libs:" " ${ ICULIBS_IO } " >> $@
2010-04-29 03:52:08 +00:00
@echo $@ updated.
2014-09-10 02:20:50 +00:00
ICULEHB_LIBS = @ICULEHB_LIBS@
USING_HB =
i f n e q ( $( ICULEHB_LIBS ) , )
USING_HB = ( Using HarfBuzz)
e n d i f
2010-08-30 18:59:02 +00:00
config/icu-lx.pc : config /icu .pc Makefile icudefs .mk
@cat config/icu.pc > $@
2014-09-10 02:20:50 +00:00
@echo " Description: $( PACKAGE_ICU_DESCRIPTION) : Paragraph Layout library $( USING_HB) " >> $@
2010-08-30 18:59:02 +00:00
@echo " Name: $( PACKAGE) -lx " >> $@
2014-09-10 02:20:50 +00:00
i f n e q ( $( ICULEHB_LIBS ) , )
@echo "Requires: icu-le-hb icu-uc" >> $@
e l s e
2010-08-30 18:59:02 +00:00
@echo "Requires: icu-le" >> $@
2014-09-10 02:20:50 +00:00
e n d i f
2010-08-30 18:59:02 +00:00
@echo "Libs:" " ${ ICULIBS_LX } " >> $@
@echo $@ updated.
2000-10-26 19:37:43 +00:00
Makefile : $( srcdir ) /Makefile .in icudefs .mk $( top_builddir ) /config .status
1999-08-16 21:50:52 +00:00
cd $( top_builddir) \
2000-08-29 07:28:22 +00:00
&& CONFIG_FILES = $( subdir) /$@ CONFIG_HEADERS = $( SHELL) ./config.status
1999-08-16 21:50:52 +00:00
2000-06-29 01:43:49 +00:00
$(top_builddir)/config/Makefile.inc : $( srcdir ) /config /Makefile .inc .in $( top_builddir ) /config .status
cd $( top_builddir) \
&& CONFIG_FILES = $@ CONFIG_HEADERS = $( SHELL) ./config.status
2008-12-01 21:57:14 +00:00
$(top_builddir)/config/pkgdata.inc : icudefs .mk $( top_builddir ) /config /pkgdataMakefile
cd $( top_builddir) /config; \
$( MAKE) -f pkgdataMakefile
$(top_builddir)/config/pkgdataMakefile :
cd $( top_builddir) \
&& CONFIG_FILES = $@ CONFIG_HEADERS = $( SHELL) ./config.status
2002-05-07 05:12:43 +00:00
$(top_builddir)/config/icu-config : $( top_builddir ) /Makefile $( top_srcdir ) /config /icu -config -top $( top_srcdir ) /config /icu -config -bottom $( top_builddir ) /config /Makefile .inc @platform_make_fragment @ $( top_srcdir ) /config /make 2sh .sed
2002-05-23 23:45:40 +00:00
-$( RMV) $@
2004-07-09 15:43:36 +00:00
$( INSTALL_SCRIPT) $( top_srcdir) /config/icu-config-top $@
2006-03-30 00:33:20 +00:00
chmod u+w $@
2002-05-07 03:09:19 +00:00
@echo "# Following from @platform_make_fragment@" >> $@
2010-06-08 22:29:08 +00:00
LC_ALL = C sed -f $( top_srcdir) /config/make2sh.sed < $( top_builddir) /config/Makefile.inc | grep -v '#M#' | uniq >> $@
LC_ALL = C sed -f $( top_srcdir) /config/make2sh.sed < @platform_make_fragment@ | grep -v '#M#' | uniq >> $@
2002-05-07 03:09:19 +00:00
cat $( top_srcdir) /config/icu-config-bottom >> $@
2006-03-30 00:33:20 +00:00
chmod u-w $@
2002-05-07 03:09:19 +00:00
2009-10-14 20:11:28 +00:00
config.status : $( srcdir ) /configure $( srcdir ) /common /unicode /uvernum .h
2003-02-07 00:40:17 +00:00
@echo
@echo
@echo "*** config.status has become stale ***"
2010-02-17 22:18:24 +00:00
@echo " 'configure' and/or 'uvernum.h' have changed, please"
2003-02-07 00:40:17 +00:00
@echo " do 'runConfigureICU' (or 'configure') again, as per"
@echo " the readme.html."
@echo
@echo
exit 1
2000-02-16 22:38:38 +00:00
2002-05-23 23:45:40 +00:00
install-manx : $( MANX_FILES )
$( MKINSTALLDIRS) $( DESTDIR) $( mandir) /man$( SECTION)
$( INSTALL_DATA) $? $( DESTDIR) $( mandir) /man$( SECTION)
2002-06-11 22:23:05 +00:00
config/%.$(SECTION) : $( srcdir ) /config /%.$( SECTION ) .in
2002-05-23 23:45:40 +00:00
cd $( top_builddir) \
&& CONFIG_FILES = $( subdir) /$@ CONFIG_HEADERS = $( SHELL) ./config.status
2002-06-11 22:23:05 +00:00
2010-02-02 21:49:58 +00:00
icu4j-data-install icu4j-data : all tests
@echo ICU4J_ROOT = $( ICU4J_ROOT)
@$( MAKE) -C test/testdata $@
@$( MAKE) -C data $@
2010-02-17 22:18:24 +00:00
2010-07-09 17:56:07 +00:00
# For updating Windows makefiles
2010-10-07 00:23:38 +00:00
WINDOWS_UPDATEFILES = $( srcdir) /data/makedata.mak $( shell find $( srcdir) -name '*.vcproj' -o -name '*.vcxproj' )
2010-02-17 22:18:24 +00:00
WINDOWS_UPDATEFILES_SED = config/windows-update.sed
update-windows-makefiles : config .status
@echo Updating Windows Makefiles for ICU $( VERSION)
CONFIG_FILES = $( WINDOWS_UPDATEFILES_SED) CONFIG_HEADERS = $( SHELL) ./config.status
@for file in $( WINDOWS_UPDATEFILES) ; do \
echo " Updating $$ file " ; \
mv " $$ {file} " " $$ {file}.bak " && \
sed -f $( WINDOWS_UPDATEFILES_SED) < " $$ {file}.bak " > " $$ {file} " && \
rm " $$ {file}.bak " ; \
done ;
$( RMV) $( WINDOWS_UPDATEFILES_SED)
@echo Please check over the changes carefully before checking them in.
2010-07-09 17:56:07 +00:00
# For building a source distribution.
2010-07-14 20:44:40 +00:00
distcheck dist-local :
2012-11-11 01:30:48 +00:00
$( MAKE) -C . -f $( top_srcdir) /config/dist.mk srcdir = " $( srcdir) " top_srcdir = " $( top_srcdir) " $@
2011-11-16 22:03:45 +00:00
i f e q ( $( DESTDIR ) , )
releaseDist :
@echo "Please provide DESTDIR when calling the target releaseDist."
e l s e
releaseDist : install
@echo -n "ICU Version: " > $( DESTDIR) /readme.txt
@echo ` ./config/icu-config --noverify --version` >> $( DESTDIR) /readme.txt
@echo -n "HOST: " >> $( DESTDIR) /readme.txt
@echo ` ./config/icu-config --noverify --host` >> $( DESTDIR) /readme.txt
@echo -n "CC Compiler: " >> $( DESTDIR) /readme.txt
@echo ` ./config/icu-config --noverify --cc` >> $( DESTDIR) /readme.txt
@echo -n "CXX Compiler: " >> $( DESTDIR) /readme.txt
@echo ` ./config/icu-config --noverify --cxx` >> $( DESTDIR) /readme.txt
e n d i f
2012-02-21 04:35:07 +00:00
check-installed-icu : install
@echo " Testing ICU installed in $( prefix) "
$( INSTALLED_INVOKE) $( bindir) /icuinfo$( EXEEXT)
$( INSTALLED_INVOKE) $( bindir) /uconv$( EXEEXT) -V
$( INSTALLED_INVOKE) $( bindir) /genrb$( EXEEXT) -V
$( INSTALLED_INVOKE) $( bindir) /gencnval$( EXEEXT) -h
@echo INSTALLED ICU IN " $( prefix) " OK!