intl/icu/source/Makefile.in

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial