Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2776ebc4b5
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (63 sloc) 1.916 kB
GREP = /usr/bin/grep
CUT = /usr/bin/cut
SHELL = /bin/sh
CHMOD = chmod
CP = cp
MV = mv
NOOP = $(SHELL) -c true
RM_F = rm -f
RM_RF = rm -rf
TEST_F = test -f
TOUCH = touch
UMASK_NULL = umask 0
DEV_NULL = > /dev/null 2>&1
MKPATH = mkdir -p
CAT = cat
MAKE = make
OPEN = open
ECHO = echo
ECHO_N = echo -n
JAVA = bin/java
NAME = `$(CAT) framework/appinfo.json | $(GREP) '"id"' | $(CUT) -d \" -f 4`
VERSION = `$(CAT) framework/appinfo.json | $(GREP) '"version"' | $(CUT) -d \" -f 4`
all :: js copy_js package deploy run
custom :: js copy_js package deploy
clean :: clean_libs
clean_libs:
-$(RM_RF) lib
package:
palm-package.bat framework/
deploy:
palm-install.bat $(NAME)_$(VERSION)_all.ipk
run:
palm-launch.bat $(NAME)
copy_js:
cp lib/phonegap.js framework/phonegap.js
js: lib/phonegap.js
lib/phonegap.js: js/phonegap.js.base js/acceleration.js js/accelerometer.js js/application.js js/audio.js js/camera.js js/contacts.js js/debugconsole.js js/device.js js/file.js js/geolocation.js js/map.js js/mojo.js js/mouse.js js/network.js js/notification.js js/orientation.js js/position.js js/service.js js/sms.js js/storage.js js/telephony.js js/window.js js/windowproperties.js
$(MKPATH) lib
$(RM_F) $@
$(CAT) js/phonegap.js.base >> $@
$(CAT) js/acceleration.js >> $@
$(CAT) js/accelerometer.js >> $@
$(CAT) js/application.js >> $@
$(CAT) js/audio.js >> $@
$(CAT) js/camera.js >> $@
$(CAT) js/contacts.js >> $@
$(CAT) js/debugconsole.js >> $@
$(CAT) js/device.js >> $@
$(CAT) js/file.js >> $@
$(CAT) js/geolocation.js >> $@
$(CAT) js/map.js >> $@
$(CAT) js/mojo.js >> $@
$(CAT) js/mouse.js >> $@
$(CAT) js/network.js >> $@
$(CAT) js/notification.js >> $@
$(CAT) js/orientation.js >> $@
$(CAT) js/position.js >> $@
$(CAT) js/service.js >> $@
$(CAT) js/sms.js >> $@
$(CAT) js/storage.js >> $@
$(CAT) js/telephony.js >> $@
$(CAT) js/window.js >> $@
$(CAT) js/windowproperties.js >> $@
Jump to Line
Something went wrong with that request. Please try again.