[Android] build: Android.mk run shell commands with $(shell)

Steve Lhomme git at videolan.org
Fri Oct 21 15:24:53 CEST 2016


vlc-android | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Oct 19 12:54:13 2016 +0200| [f83e15d616f3678b933b593a541253c852509611] | committer: Thomas Guillem

build: Android.mk run shell commands with $(shell)

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> https://code.videolan.org/videolan/vlc-android/commit/f83e15d616f3678b933b593a541253c852509611
---

 libvlc/private_libs/Android.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvlc/private_libs/Android.mk b/libvlc/private_libs/Android.mk
index 81d8469..eb8cb9e 100644
--- a/libvlc/private_libs/Android.mk
+++ b/libvlc/private_libs/Android.mk
@@ -11,12 +11,12 @@ ANDROID_PRIVATE_LIBS=$(ANDROID_PRIVATE_LIBDIR)/$(TARGET_TUPLE)/libstagefright.so
 					 $(ANDROID_PRIVATE_LIBDIR)/$(TARGET_TUPLE)/libhardware.so
 
 $(ANDROID_PRIVATE_LIBDIR)/$(TARGET_TUPLE)/%.so: $(ANDROID_PRIVATE_LIBDIR)/%.c
-	mkdir -p $(ANDROID_PRIVATE_LIBDIR)/$(TARGET_TUPLE)
+	$(shell mkdir -p $(ANDROID_PRIVATE_LIBDIR)/$(TARGET_TUPLE))
 	$(GEN)clang $< -shared -o $@
 
 $(ANDROID_PRIVATE_LIBDIR)/%.c: $(ANDROID_PRIVATE_LIBDIR)/%.symbols
 	$(VERBOSE)rm -f $@ && touch $@
-	$(GEN)for s in `cat $<`; do echo "void $$s() {}" >> $@; done
+	$(GEN)$(shell for s in `cat $<`; do echo \"void $$s() {}\" >> $@; done)
 
 ###########
 # libiOMX #



More information about the Android mailing list