From 0ef45b22cce0435e0510edec0fed50a453270e26 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 Feb 2015 01:44:48 -0500 Subject: Detect cordova build errors --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1d7b953..17b38e4 100644 --- a/Makefile +++ b/Makefile @@ -69,10 +69,14 @@ upload: PHONY build DEP_DIR = $1 $(shell find $1) platforms/browser/build/package.zip: platforms/browser $(sources) $(call DEP_DIR,www) + rm -f -- $@ $(CORDOVA) build browser + test -f $@ platforms/android/ant-build/CordovaApp-debug.apk: platforms/android $(sources) $(call DEP_DIR,www) + rm -f -- $@ $(CORDOVA) build android + test -f $@ platforms/%: $(CORDOVA) platform add $* -- cgit v1.2.3-54-g00ecf