From 3990c90938c8078a13665d55126a6ebcf5f4ad7b Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 30 Mar 2015 10:44:42 +0200 Subject: [PATCH] Makefile: use ant -S only if this is supported --- Makefile | 2 +- tests/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ab8cfb326..e46202344 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/tests/Makefile b/tests/Makefile index 0383a7073..6f7d119f2 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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