distclean-local distclean-recursive doc dist dist-local dist-recursive \
check check-local check-recursive clean-recursive-with-twist install-icu \
doc install-doc tests icu4j-data icu4j-data-install update-windows-makefiles xcheck-local xcheck-recursive xperf xcheck xperf-recursive \
-check-exhaustive check-exhaustive-local check-exhaustive-recursive
+check-exhaustive check-exhaustive-local check-exhaustive-recursive releaseDist
## Clear suffix list
.SUFFIXES :
# For building a source distribution.
distcheck dist-local:
$(MAKE) -C . -f config/dist.mk srcdir="$(srcdir)" top_srcdir="$(top_srcdir)" $@
+
+ifeq ($(DESTDIR),)
+releaseDist:
+ @echo "Please provide DESTDIR when calling the target releaseDist."
+else
+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
+endif
## -*-sh-*-
## BEGIN of icu-config-bottom.
-## Copyright (c) 2002-2010, International Business Machines Corporation and
+## Copyright (c) 2002-2011, International Business Machines Corporation and
## others. All Rights Reserved.
ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}"
;;
--version)
- echo $ECHO_N $VERSION
- ;;
+ echo $ECHO_N $VERSION
+ ;;
- --unicode-version)
- echo $ECHO_N $UNICODE_VERSION
- ;;
+ --unicode-version)
+ echo $ECHO_N $UNICODE_VERSION
+ ;;
+
+ --host)
+ echo $host
+ exit 0
+ ;;
--help)
usage