| 1 |
# Copyright (C) 2016 and later: Unicode, Inc. and others. |
| 2 |
# License & terms of use: http://www.unicode.org/copyright.html |
| 3 |
#****************************************************************************** |
| 4 |
# |
| 5 |
# Copyright (C) 1998-2016, International Business Machines |
| 6 |
# Corporation and others. All Rights Reserved. |
| 7 |
# |
| 8 |
#****************************************************************************** |
| 9 |
## Top-level Makefile.in for ICU |
| 10 |
## Stephen F. Booth |
| 11 |
|
| 12 |
srcdir = @srcdir@ |
| 13 |
top_srcdir = @top_srcdir@ |
| 14 |
|
| 15 |
top_builddir = . |
| 16 |
|
| 17 |
include $(top_builddir)/icudefs.mk |
| 18 |
|
| 19 |
docdir = $(datadir)/doc |
| 20 |
docsubdir = $(PACKAGE)$(ICULIBDASHSUFFIX)/html |
| 21 |
docfilesdir = doc/html |
| 22 |
docfiles = $(docfilesdir)/*.png $(docfilesdir)/*.html $(docfilesdir)/*.css $(docfilesdir)/*.tag |
| 23 |
docsrchdir = $(docfilesdir)/search |
| 24 |
docsrchfiles = $(docsrchdir)/* |
| 25 |
|
| 26 |
## |
| 27 |
|
| 28 |
## Build directory information |
| 29 |
subdir = . |
| 30 |
|
| 31 |
#AUTOCONF = @AUTOCONF@ |
| 32 |
|
| 33 |
## Optional directory setup |
| 34 |
@LAYOUTEX_TRUE@LAYOUTEX = layoutex |
| 35 |
@ICUIO_TRUE@ICUIO = io |
| 36 |
@EXTRAS_TRUE@EXTRA = extra |
| 37 |
# need tools for tests |
| 38 |
@TOOLS_TRUE@@TESTS_TRUE@TEST = test |
| 39 |
@SAMPLES_TRUE@SAMPLE = samples |
| 40 |
@TOOLS_TRUE@TOOLS = tools |
| 41 |
@DATA_TRUE@DATASUBDIR = data |
| 42 |
|
| 43 |
## pkgconfig setup. Always have uc and i18n. Others are optional. |
| 44 |
ALL_PKGCONFIG_SUFFIX=uc i18n |
| 45 |
@LAYOUTEX_TRUE@ALL_PKGCONFIG_SUFFIX+= lx |
| 46 |
@ICUIO_TRUE@ALL_PKGCONFIG_SUFFIX+= io |
| 47 |
|
| 48 |
DOXYGEN = @DOXYGEN@ |
| 49 |
DOCZIP = icu-docs.zip |
| 50 |
|
| 51 |
INSTALL_ICU_CONFIG = @INSTALL_ICU_CONFIG@ |
| 52 |
|
| 53 |
## Files to remove for 'make clean' |
| 54 |
CLEANFILES = *~ |
| 55 |
|
| 56 |
ALL_PKGCONFIG_FILES=$(ALL_PKGCONFIG_SUFFIX:%=$(top_builddir)/config/icu-%.pc) |
| 57 |
|
| 58 |
## Files built (autoconfed) and installed |
| 59 |
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) |
| 60 |
|
| 61 |
## Files built (autoconfed) but not installed |
| 62 |
LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk config/icucross.inc |
| 63 |
|
| 64 |
DOCDIRS = common i18n |
| 65 |
SUBDIRS = stubdata common i18n $(LAYOUTEX) $(ICUIO) $(TOOLS) $(DATASUBDIR) $(EXTRA) $(SAMPLE) $(TEST) |
| 66 |
|
| 67 |
SECTION = 1 |
| 68 |
|
| 69 |
ifeq ($(INSTALL_ICU_CONFIG),true) |
| 70 |
MANX_FILES = config/icu-config.$(SECTION) |
| 71 |
endif |
| 72 |
|
| 73 |
ALL_MAN_FILES = $(MANX_FILES) |
| 74 |
|
| 75 |
## Extra files to install [nothing at present] |
| 76 |
EXTRA_DATA = |
| 77 |
|
| 78 |
## List of phony targets |
| 79 |
.PHONY : all all-local all-recursive install install-local install-udata install-udata-files install-udata-dlls \ |
| 80 |
install-recursive install-manx clean clean-local clean-recursive distclean \ |
| 81 |
distclean-local distclean-recursive doc dist dist-local dist-recursive \ |
| 82 |
check check-local check-recursive clean-recursive-with-twist install-icu \ |
| 83 |
doc install-doc tests icu4j-data icu4j-data-install update-windows-makefiles xcheck-local xcheck-recursive xperf xcheck xperf-recursive \ |
| 84 |
check-exhaustive check-exhaustive-local check-exhaustive-recursive releaseDist |
| 85 |
|
| 86 |
## Clear suffix list |
| 87 |
.SUFFIXES : |
| 88 |
|
| 89 |
## List of standard targets |
| 90 |
all: all-local all-recursive |
| 91 |
install: install-recursive |
| 92 |
clean: clean-recursive-with-twist clean-local |
| 93 |
distclean : distclean-recursive |
| 94 |
dist: dist-recursive |
| 95 |
check: all check-recursive |
| 96 |
check-recursive: all |
| 97 |
xcheck: all xcheck-recursive |
| 98 |
xperf: all xperf-recursive |
| 99 |
check-exhaustive: all check-exhaustive-recursive |
| 100 |
|
| 101 |
pcheck: all tests |
| 102 |
@$(MAKE) -C test pcheck |
| 103 |
|
| 104 |
check-exhaustive-local: check-local |
| 105 |
|
| 106 |
xcheck-recursive: all xcheck-local |
| 107 |
@$(MAKE) -C test xcheck |
| 108 |
|
| 109 |
xperf-recursive: all tests |
| 110 |
@$(MAKE) -C test/perf xperf |
| 111 |
|
| 112 |
$(top_builddir)/config/icuinfo.xml: all |
| 113 |
@$(MAKE) -C tools/icuinfo check |
| 114 |
|
| 115 |
ifeq ($(DOXYGEN),) |
| 116 |
doc doc-searchengine: |
| 117 |
@echo you need Doxygen to generate documentation. Doxygen can be found on the Web |
| 118 |
@echo at http://www.doxygen.org/ |
| 119 |
else |
| 120 |
doc: doc/html/index.html |
| 121 |
|
| 122 |
doc-searchengine: Doxyfile $(wildcard ./common/unicode/platform.h $(srcdir)/common/unicode/*.h $(srcdir)/i18n/unicode/*.h $(srcdir)/io/unicode/*.h) |
| 123 |
sed < Doxyfile -e 's%[^#]*SEARCHENGINE.*%SEARCHENGINE=YES%' | $(DOXYGEN) - |
| 124 |
@echo adding links from non-namespaced class files |
| 125 |
find doc/html -name 'classicu_1_1*' -print | sed -e 's%^\(.*class\)icu_1_1\(.*\)$$%ln & \1\2%' | sh |
| 126 |
@echo Docs created - WARNING, probably contains non-GPL .js files |
| 127 |
|
| 128 |
doc/html/index.html: Doxyfile $(wildcard ./common/unicode/platform.h $(srcdir)/common/unicode/*.h $(srcdir)/i18n/unicode/*.h $(srcdir)/io/unicode/*.h) |
| 129 |
$(DOXYGEN) |
| 130 |
@echo adding links from non-namespaced class files |
| 131 |
find doc/html -name 'classicu_1_1*' -print | sed -e 's%^\(.*class\)icu_1_1\(.*\)$$%ln & \1\2%' | sh |
| 132 |
|
| 133 |
Doxyfile: $(srcdir)/Doxyfile.in |
| 134 |
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 135 |
|
| 136 |
$(DOCZIP): doc-searchengine |
| 137 |
-$(RMV) $(DOCZIP) |
| 138 |
( cd doc/html ; zip -r ../../$(DOCZIP) * ) |
| 139 |
endif |
| 140 |
|
| 141 |
LOCAL_SUBDIRS = $(SUBDIRS) |
| 142 |
CLEAN_FIRST_SUBDIRS = $(TOOLS) |
| 143 |
|
| 144 |
$(LIBDIR) $(BINDIR): |
| 145 |
-$(MKINSTALLDIRS) $@ |
| 146 |
|
| 147 |
## Recursive targets |
| 148 |
## Strictly speaking, the $(MAKEOVERRIDES) is not necessary when recursing, but |
| 149 |
## there is a bug in GNU make 3.82 that throws away the original overrides in |
| 150 |
## favor of RECURSIVE=YES when the submake in the subdirectory restarts itself |
| 151 |
## after dependency files have been created. |
| 152 |
all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive check-exhaustive-recursive: $(LIBDIR) $(BINDIR) |
| 153 |
ifneq ($(NEED_ESCAPING),) |
| 154 |
@echo "building tools/escapesrc (Needed for this platform with NEED_ESCAPING)" |
| 155 |
@(cd tools/escapesrc && $(MAKE) $(MAKEOVERRIDES) RECURSIVE=YES $$local_target) || exit |
| 156 |
endif |
| 157 |
@dot_seen=no; \ |
| 158 |
target=`echo $@ | sed s/-recursive//`; \ |
| 159 |
list='$(LOCAL_SUBDIRS)'; for subdir in $$list; do \ |
| 160 |
echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \ |
| 161 |
if test "$$subdir" = "."; then \ |
| 162 |
dot_seen=yes; \ |
| 163 |
local_target="$$target-local"; \ |
| 164 |
else \ |
| 165 |
local_target="$$target"; \ |
| 166 |
fi; \ |
| 167 |
(cd $$subdir && $(MAKE) $(MAKEOVERRIDES) RECURSIVE=YES $$local_target) || exit; \ |
| 168 |
done; \ |
| 169 |
if test "$$dot_seen" = "no"; then \ |
| 170 |
$(MAKE) "$$target-local" || exit; \ |
| 171 |
fi |
| 172 |
|
| 173 |
clean-recursive-with-twist: |
| 174 |
$(MAKE) clean-recursive LOCAL_SUBDIRS='$(CLEAN_FIRST_SUBDIRS) $(filter-out $(CLEAN_FIRST_SUBDIRS),$(LOCAL_SUBDIRS))' |
| 175 |
|
| 176 |
all-local: $(srcdir)/configure $(LOCAL_BUILT_FILES) $(INSTALLED_BUILT_FILES) |
| 177 |
ifndef VERBOSE |
| 178 |
@echo "Note: rebuild with \"$(MAKE) VERBOSE=1 $(MAKECMDGOALS)\" to show all compiler parameters." |
| 179 |
endif |
| 180 |
install-local: install-icu install-manx |
| 181 |
|
| 182 |
# always installs. Used by layoutex. |
| 183 |
install-pkgconfig: $(ALL_PKGCONFIG_FILES) |
| 184 |
@$(MKINSTALLDIRS) $(DESTDIR)$(libdir)/pkgconfig |
| 185 |
$(INSTALL_DATA) $(ALL_PKGCONFIG_FILES) $(DESTDIR)$(libdir)/pkgconfig/ |
| 186 |
|
| 187 |
install-icu: $(INSTALLED_BUILT_FILES) |
| 188 |
@$(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir)/config |
| 189 |
@$(MKINSTALLDIRS) $(DESTDIR)$(pkglibdir) |
| 190 |
@$(MKINSTALLDIRS) $(DESTDIR)$(bindir) |
| 191 |
@$(MKINSTALLDIRS) $(DESTDIR)$(sbindir) |
| 192 |
$(INSTALL_DATA) @platform_make_fragment@ $(DESTDIR)$(pkgdatadir)/config/@platform_make_fragment_name@ |
| 193 |
$(INSTALL_SCRIPT) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)/mkinstalldirs |
| 194 |
$(INSTALL_SCRIPT) $(top_srcdir)/install-sh $(DESTDIR)$(pkgdatadir)/install-sh |
| 195 |
@$(MKINSTALLDIRS) $(DESTDIR)$(libdir)/pkgconfig |
| 196 |
$(INSTALL_DATA) $(ALL_PKGCONFIG_FILES) $(DESTDIR)$(libdir)/pkgconfig/ |
| 197 |
$(INSTALL_DATA) $(top_srcdir)/../LICENSE $(DESTDIR)$(pkgdatadir)/LICENSE |
| 198 |
ifeq ($(INSTALL_ICU_CONFIG),true) |
| 199 |
$(INSTALL_SCRIPT) $(top_builddir)/config/icu-config $(DESTDIR)$(bindir)/icu-config |
| 200 |
endif |
| 201 |
$(INSTALL_DATA) $(top_builddir)/config/Makefile.inc $(DESTDIR)$(pkglibdir)/Makefile.inc |
| 202 |
$(INSTALL_DATA) $(top_builddir)/config/pkgdata.inc $(DESTDIR)$(pkglibdir)/pkgdata.inc |
| 203 |
# @echo icuinfo.xml is built after make check. |
| 204 |
# -$(INSTALL_DATA) $(top_builddir)/config/icuinfo.xml $(DESTDIR)$(pkglibdir)/icuinfo.xml |
| 205 |
cd $(DESTDIR)$(pkglibdir)/..; \ |
| 206 |
$(RMV) current && ln -s $(VERSION) current; \ |
| 207 |
$(RM) Makefile.inc && ln -s current/Makefile.inc Makefile.inc; \ |
| 208 |
$(RM) pkgdata.inc && ln -s current/pkgdata.inc pkgdata.inc |
| 209 |
|
| 210 |
ifeq ($(DOXYGEN),) |
| 211 |
install-doc: |
| 212 |
else |
| 213 |
install-doc: doc-searchengine |
| 214 |
$(RM) -r $(DESTDIR)$(docdir)/$(docsubdir) |
| 215 |
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(docsubdir) |
| 216 |
$(INSTALL_DATA) $(docfiles) $(DESTDIR)$(docdir)/$(docsubdir) |
| 217 |
|
| 218 |
endif |
| 219 |
|
| 220 |
$(DESTDIR)$(pkglibdir)/%: $(top_srcdir)/../data/% |
| 221 |
$(INSTALL_DATA) $< $@ |
| 222 |
|
| 223 |
# Build the tests, but don't run them. |
| 224 |
tests: all |
| 225 |
$(MAKE) -C $(top_builddir)/test |
| 226 |
|
| 227 |
clean-local: |
| 228 |
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
| 229 |
-$(RMV) "test-*.xml" |
| 230 |
-$(RMV) "perf-*.xml" |
| 231 |
-$(RMV) $(ALL_PKGCONFIG_FILES) $(top_builddir)/config/icuinfo.xml |
| 232 |
$(RMV) Doxyfile doc $(DOCZIP) |
| 233 |
|
| 234 |
distclean-local: clean-local |
| 235 |
$(RMV) $(top_builddir)/config/Makefile.inc $(top_builddir)/config/pkgdata.inc $(top_builddir)/config/icu-config $(top_builddir)/config/icu.pc $(ALL_PKGCONFIG_FILES) |
| 236 |
$(RMV) config.cache config.log config.status $(top_builddir)/config/icucross.mk $(top_builddir)/config/icucross.inc autom4te.cache uconfig.h.prepend |
| 237 |
$(RMV) Makefile config/Makefile icudefs.mk $(LIBDIR) $(BINDIR) |
| 238 |
-$(RMV) dist |
| 239 |
|
| 240 |
check-local: xcheck-local |
| 241 |
-$(RMV) test-local.xml |
| 242 |
|
| 243 |
xcheck-local: $(top_builddir)/config/icu-config $(top_builddir)/config/Makefile.inc $(top_builddir)/config/pkgdata.inc |
| 244 |
@echo verifying that icu-config --selfcheck can operate |
| 245 |
@test "passed" = "$(shell $(top_builddir)/config/icu-config --selfcheck 2>&1)" || (echo "FAIL: icu-config could not run properly." ; exit 1) |
| 246 |
@echo verifying that $(MAKE) -f Makefile.inc selfcheck can operate |
| 247 |
@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 ) |
| 248 |
@echo "PASS: config selfcheck OK" |
| 249 |
|
| 250 |
#$(srcdir)/configure : $(srcdir)/configure.ac $(top_srcdir)/aclocal.m4 |
| 251 |
# cd $(srcdir) && aclocal && $(AUTOCONF) |
| 252 |
|
| 253 |
icudefs.mk: $(srcdir)/icudefs.mk.in $(top_builddir)/config.status |
| 254 |
cd $(top_builddir) \ |
| 255 |
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 256 |
|
| 257 |
config/icucross.mk: $(top_builddir)/icudefs.mk $(top_builddir)/Makefile |
| 258 |
@echo rebuilding $@ |
| 259 |
@(echo "CROSS_ICU_VERSION=$(VERSION)" ;\ |
| 260 |
echo "TOOLEXEEXT=$(EXEEXT)" \ |
| 261 |
) > $@ |
| 262 |
@(echo 'TOOLBINDIR=$$(cross_buildroot)/bin' ;\ |
| 263 |
echo 'TOOLLIBDIR=$$(cross_buildroot)/lib' ;\ |
| 264 |
echo "INVOKE=$(LDLIBRARYPATH_ENVVAR)=$(LIBRARY_PATH_PREFIX)"'$$(TOOLLIBDIR):$$(cross_buildroot)/stubdata:$$(cross_buildroot)/tools/ctestfw:$$$$'"$(LDLIBRARYPATH_ENVVAR)" ;\ |
| 265 |
echo "PKGDATA_INVOKE=$(LDLIBRARYPATH_ENVVAR)=$(LIBRARY_PATH_PREFIX)"'$$(cross_buildroot)/stubdata:$$(cross_buildroot)/tools/ctestfw:$$(TOOLLIBDIR):$$$$'"$(LDLIBRARYPATH_ENVVAR) " ;\ |
| 266 |
echo ) >> $@ |
| 267 |
|
| 268 |
config/icucross.inc: $(top_builddir)/icudefs.mk $(top_builddir)/Makefile @platform_make_fragment@ |
| 269 |
@echo rebuilding $@ |
| 270 |
@(grep '^CURR_FULL_DIR' $(top_builddir)/icudefs.mk ; \ |
| 271 |
grep '^CURR_FULL_DIR' @platform_make_fragment@ || echo ""; \ |
| 272 |
) > $@ |
| 273 |
|
| 274 |
config/icu.pc: $(srcdir)/config/icu.pc.in |
| 275 |
cd $(top_builddir) \ |
| 276 |
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 277 |
|
| 278 |
config/icu-uc.pc: config/icu.pc Makefile icudefs.mk |
| 279 |
@cat config/icu.pc > $@ |
| 280 |
@echo "Description: $(PACKAGE_ICU_DESCRIPTION): Common and Data libraries" >> $@ |
| 281 |
@echo "Name: $(PACKAGE)-uc" >> $@ |
| 282 |
ifeq ($(ENABLE_SHARED),) |
| 283 |
@echo "Libs:" '-L$${libdir}' "${ICULIBS_UC}" "${ICULIBS_DT}" '$${baselibs}' >> $@ |
| 284 |
else |
| 285 |
@echo "Libs:" '-L$${libdir}' "${ICULIBS_UC}" >> $@ |
| 286 |
@echo "Libs.private:" "${ICULIBS_DT}" '$${baselibs}' >> $@ |
| 287 |
endif |
| 288 |
@echo $@ updated. |
| 289 |
|
| 290 |
config/icu-i18n.pc: config/icu.pc Makefile icudefs.mk |
| 291 |
@cat config/icu.pc > $@ |
| 292 |
@echo "Description: $(PACKAGE_ICU_DESCRIPTION): Internationalization library" >> $@ |
| 293 |
@echo "Name: $(PACKAGE)-i18n" >> $@ |
| 294 |
ifeq ($(ENABLE_SHARED),) |
| 295 |
@echo "Requires: icu-uc" >> $@ |
| 296 |
else |
| 297 |
@echo "Requires.private: icu-uc" >> $@ |
| 298 |
endif |
| 299 |
@echo "Libs:" '-L$${libdir}' "${ICULIBS_I18N}" >> $@ |
| 300 |
@echo $@ updated. |
| 301 |
|
| 302 |
config/icu-io.pc: config/icu.pc Makefile icudefs.mk |
| 303 |
@cat config/icu.pc > $@ |
| 304 |
@echo "Description: $(PACKAGE_ICU_DESCRIPTION): Stream and I/O Library" >> $@ |
| 305 |
@echo "Name: $(PACKAGE)-io" >> $@ |
| 306 |
ifeq ($(ENABLE_SHARED),) |
| 307 |
@echo "Requires: icu-i18n" >> $@ |
| 308 |
else |
| 309 |
@echo "Requires.private: icu-i18n" >> $@ |
| 310 |
endif |
| 311 |
@echo "Libs:" '-L$${libdir}' "${ICULIBS_IO}" >> $@ |
| 312 |
@echo $@ updated. |
| 313 |
|
| 314 |
ICULEHB_LIBS=@ICULEHB_LIBS@ |
| 315 |
USING_HB= |
| 316 |
ifneq ($(ICULEHB_LIBS),) |
| 317 |
USING_HB=(Using HarfBuzz) |
| 318 |
endif |
| 319 |
|
| 320 |
|
| 321 |
config/icu-lx.pc: config/icu.pc Makefile icudefs.mk |
| 322 |
@cat config/icu.pc > $@ |
| 323 |
@echo "Description: $(PACKAGE_ICU_DESCRIPTION): Paragraph Layout library $(USING_HB)" >> $@ |
| 324 |
@echo "Name: $(PACKAGE)-lx" >> $@ |
| 325 |
ifeq ($(ENABLE_SHARED),) |
| 326 |
ifneq ($(ICULEHB_LIBS),) |
| 327 |
@echo "Requires: icu-le-hb icu-uc" >> $@ |
| 328 |
else |
| 329 |
@echo "Requires: icu-le" >> $@ |
| 330 |
endif |
| 331 |
else |
| 332 |
ifneq ($(ICULEHB_LIBS),) |
| 333 |
@echo "Requires.private: icu-le-hb icu-uc" >> $@ |
| 334 |
else |
| 335 |
@echo "Requires.private: icu-le" >> $@ |
| 336 |
endif |
| 337 |
endif |
| 338 |
@echo "Libs:" '-L$${libdir}' "${ICULIBS_LX}" >> $@ |
| 339 |
@echo $@ updated. |
| 340 |
|
| 341 |
|
| 342 |
Makefile: $(srcdir)/Makefile.in icudefs.mk $(top_builddir)/config.status |
| 343 |
cd $(top_builddir) \ |
| 344 |
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 345 |
|
| 346 |
$(top_builddir)/config/Makefile.inc: $(srcdir)/config/Makefile.inc.in $(top_builddir)/config.status |
| 347 |
cd $(top_builddir) \ |
| 348 |
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 349 |
|
| 350 |
$(top_builddir)/config/pkgdata.inc: icudefs.mk $(top_builddir)/config/pkgdataMakefile |
| 351 |
cd $(top_builddir)/config; \ |
| 352 |
$(MAKE) -f pkgdataMakefile |
| 353 |
|
| 354 |
$(top_builddir)/config/pkgdataMakefile: |
| 355 |
cd $(top_builddir) \ |
| 356 |
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 357 |
|
| 358 |
$(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/make2sh.sed |
| 359 |
-$(RMV) $@ |
| 360 |
$(INSTALL_SCRIPT) $(top_srcdir)/config/icu-config-top $@ |
| 361 |
chmod u+w $@ |
| 362 |
@echo "# Following from icu/icu4c/source/config/Makefile.inc" >> $@ |
| 363 |
LC_ALL=C $(SED) -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@ |
| 364 |
@echo "# Following from @platform_make_fragment_name@" >> $@ |
| 365 |
LC_ALL=C $(SED) -f $(top_srcdir)/config/make2sh.sed < @platform_make_fragment@ | grep -v '#M#' | uniq >> $@ |
| 366 |
cat $(top_srcdir)/config/icu-config-bottom >> $@ |
| 367 |
chmod u-w $@ |
| 368 |
|
| 369 |
config.status: $(srcdir)/configure $(srcdir)/common/unicode/uvernum.h |
| 370 |
@echo |
| 371 |
@echo |
| 372 |
@echo "*** config.status has become stale ***" |
| 373 |
@echo " 'configure' and/or 'uvernum.h' have changed, please" |
| 374 |
@echo " do 'runConfigureICU' (or 'configure') again, as per" |
| 375 |
@echo " the readme.html." |
| 376 |
@echo |
| 377 |
@echo |
| 378 |
exit 1 |
| 379 |
|
| 380 |
|
| 381 |
install-manx: $(MANX_FILES) |
| 382 |
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) |
| 383 |
ifneq ($(MANX_FILES),) |
| 384 |
$(INSTALL_DATA) $^ $(DESTDIR)$(mandir)/man$(SECTION) |
| 385 |
endif |
| 386 |
|
| 387 |
config/%.$(SECTION): $(srcdir)/config/%.$(SECTION).in |
| 388 |
cd $(top_builddir) \ |
| 389 |
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 390 |
|
| 391 |
icu4j-data-install icu4j-data: all tests |
| 392 |
@echo ICU4J_ROOT=$(ICU4J_ROOT) |
| 393 |
@$(MAKE) -C test/testdata $@ |
| 394 |
@$(MAKE) -C data $@ |
| 395 |
|
| 396 |
# For updating Windows makefiles |
| 397 |
|
| 398 |
WINDOWS_UPDATEFILES=$(srcdir)/data/makedata.mak $(srcdir)/allinone/Build.Windows.IcuVersion.props |
| 399 |
|
| 400 |
WINDOWS_UPDATEFILES_SED=config/windows-update.sed |
| 401 |
|
| 402 |
update-windows-makefiles: config.status |
| 403 |
@echo Updating Windows Makefiles for ICU $(VERSION) |
| 404 |
CONFIG_FILES=$(WINDOWS_UPDATEFILES_SED) CONFIG_HEADERS= $(SHELL) ./config.status |
| 405 |
@for file in $(WINDOWS_UPDATEFILES); do \ |
| 406 |
echo "Updating $$file"; \ |
| 407 |
mv "$${file}" "$${file}.bak" && \ |
| 408 |
sed -f $(WINDOWS_UPDATEFILES_SED) < "$${file}.bak" > "$${file}" && \ |
| 409 |
rm "$${file}.bak"; \ |
| 410 |
done; |
| 411 |
$(RMV) $(WINDOWS_UPDATEFILES_SED) |
| 412 |
@echo Please check over the changes carefully before checking them in. |
| 413 |
|
| 414 |
# For building a source distribution. |
| 415 |
distcheck dist-local: |
| 416 |
$(MAKE) -C . -f $(top_srcdir)/config/dist.mk srcdir="$(srcdir)" top_srcdir="$(top_srcdir)" $@ |
| 417 |
|
| 418 |
ifeq ($(DESTDIR),) |
| 419 |
releaseDist: |
| 420 |
@echo "Please provide DESTDIR when calling the target releaseDist." |
| 421 |
else |
| 422 |
releaseDist: install |
| 423 |
@echo -n "ICU Version: " > $(DESTDIR)/readme.txt |
| 424 |
@echo `./config/icu-config --noverify --version` >> $(DESTDIR)/readme.txt |
| 425 |
@echo -n "HOST: " >> $(DESTDIR)/readme.txt |
| 426 |
@echo `./config/icu-config --noverify --host` >> $(DESTDIR)/readme.txt |
| 427 |
@echo -n "CC Compiler: " >> $(DESTDIR)/readme.txt |
| 428 |
@echo `./config/icu-config --noverify --cc` >> $(DESTDIR)/readme.txt |
| 429 |
@echo -n "CXX Compiler: " >> $(DESTDIR)/readme.txt |
| 430 |
@echo `./config/icu-config --noverify --cxx` >> $(DESTDIR)/readme.txt |
| 431 |
endif |
| 432 |
|
| 433 |
check-installed-icu: install |
| 434 |
@echo "Testing ICU installed in $(prefix)" |
| 435 |
$(INSTALLED_INVOKE) $(bindir)/icuinfo$(EXEEXT) |
| 436 |
$(INSTALLED_INVOKE) $(bindir)/uconv$(EXEEXT) -V |
| 437 |
$(INSTALLED_INVOKE) $(bindir)/genrb$(EXEEXT) -V |
| 438 |
$(INSTALLED_INVOKE) $(bindir)/gencnval$(EXEEXT) -h |
| 439 |
@echo INSTALLED ICU IN "$(prefix)" OK! |