Makefile: use ant -S only if this is supported

This commit is contained in:
Gautier Pelloux-Prayer 2015-03-30 10:44:42 +02:00
parent e8027678e1
commit 3990c90938
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ LIBLINPHONE_EXTENDED_SRC_FILES=
LIBLINPHONE_EXTENDED_C_INCLUDES=
LIBLINPHONE_EXTENDED_CFLAGS=
APP_STL=stlport_static
ANT_SILENT=1
ANT_SILENT=$(shell ant -h | grep -q -- -S && echo 1 || echo 0)
# Checks
CHECK_MSG=$(shell ./check_tools.sh)

View file

@ -1,6 +1,6 @@
SDK_PATH=$(shell dirname `which android`)
SDK_PLATFORM_TOOLS_PATH=$(shell dirname `which adb`)
ANT_SILENT=1
ANT_SILENT=$(shell ant -h | grep -q -- -S && echo 1 || echo 0)
ifeq ($(ANT_SILENT), 1)
ANT=ant -e -S