mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-8911 Add make target releaseDist
X-SVN-Rev: 30973
This commit is contained in:
parent
29a020c198
commit
3280110b3c
2 changed files with 27 additions and 7 deletions
|
@ -69,7 +69,7 @@ install-recursive clean clean-local clean-recursive distclean \
|
|||
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 :
|
||||
|
@ -343,3 +343,18 @@ update-windows-makefiles: config.status
|
|||
# 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## -*-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}"
|
||||
|
@ -352,12 +352,17 @@ do
|
|||
;;
|
||||
|
||||
--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
|
||||
|
|
Loading…
Add table
Reference in a new issue