ref: 4d31f66873651a1734bed7e650a452bb6cfeb286
parent: 34782a84b1815c8d8b0b0f1d34c13bcddfa6689a
author: Martin Storsjö <[email protected]>
date: Thu Feb 20 06:38:21 EST 2014
Chain build commands using && instead of ; This makes sure the build aborts as soon as possible if there is an error, instead of having the error message drown in all the following output.
--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -41,7 +41,7 @@
binaries : decdemo encdemo
decdemo: libraries
- sh -c 'cd ./codec/build/android/dec/jni; $(NDKROOT)/ndk-build -B APP_ABI=$(APP_ABI); cd ..; android update project -t $(TARGET) -p . ; ant debug; cd ../../../..'
+ sh -c 'cd ./codec/build/android/dec/jni && $(NDKROOT)/ndk-build -B APP_ABI=$(APP_ABI) && cd .. && android update project -t $(TARGET) -p . && ant debug && cd ../../../..'
encdemo: libraries
- sh -c 'cd ./codec/build/android/enc/jni; $(NDKROOT)/ndk-build -B APP_ABI=$(APP_ABI); cd ..; android update project -t $(TARGET) -p . ; ant debug; cd ../../../..'
+ sh -c 'cd ./codec/build/android/enc/jni && $(NDKROOT)/ndk-build -B APP_ABI=$(APP_ABI) && cd .. && android update project -t $(TARGET) -p . && ant debug && cd ../../../..'