You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2012/04/27 22:18:27 UTC

webos commit: modify Makefile to work with windows

Updated Branches:
  refs/heads/master 470cf093a -> 058a2967a


modify Makefile to work with windows


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-webos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-webos/commit/058a2967
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-webos/tree/058a2967
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-webos/diff/058a2967

Branch: refs/heads/master
Commit: 058a2967ad02406afc758fce8bdfe5a50d2b7e3c
Parents: 470cf09
Author: hermwong <he...@gmail.com>
Authored: Fri Apr 27 13:14:07 2012 -0700
Committer: hermwong <he...@gmail.com>
Committed: Fri Apr 27 13:14:07 2012 -0700

----------------------------------------------------------------------
 Makefile |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-webos/blob/058a2967/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 404bdbb..ef2c033 100755
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ ECHO = echo
 ECHO_N = echo -n
 JAVA = java
 PGVERSION = 1.7.0
+UNAME=$(SHELL uname)
 
 NAME = `$(CAT) framework/appinfo.json | $(GREP) '"id"' | $(CUT) -d \" -f 4`
 VERSION = `$(CAT) framework/appinfo.json | $(GREP) '"version"' | $(CUT) -d \" -f 4`
@@ -33,13 +34,44 @@ clean_libs:
 	-$(RM_RF) lib
 	
 package:
+ifeq ($(UNAME), Linux)
+    palm-package framework/
+else
+ifeq ($(UNAME), Darwin)
+# mac OSX
 	palm-package framework/
+else
+# assume windows OS
+    palm-package.bat framework/
+endif
+endif
+	
 
 deploy:
+ifeq ($(UNAME), Linux)
 	palm-install $(NAME)_$(VERSION)_all.ipk
+else
+ifeq ($(UNAME), Darwin)
+# mac OSX
+    palm-install $(NAME)_$(VERSION)_all.ipk
+else
+# assume windows OS
+    palm-install.bat $(NAME)_$(VERSION)_all.ipk
+endif
+endif
 	
 run:
+ifeq ($(UNAME), Linux)
 	palm-launch $(NAME)
+else
+ifeq ($(UNAME), Darwin)
+# mac OSX
+    palm-launch $(NAME)
+else
+# assume windows OS
+    palm-launch.bat $(NAME)
+endif
+endif
 	
 copy_js:
 	cp lib/cordova.js framework/cordova-$(PGVERSION).js