summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-26 01:44:48 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-26 01:44:48 -0500
commit0ef45b22cce0435e0510edec0fed50a453270e26 (patch)
tree188abe3235f0950fd67f14ea08cc2a6e077d78e4
parent90bd8bed448b85e1aca463ff7f7ea4802aa1b482 (diff)
Detect cordova build errors
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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 $*