Skip to content

Instantly share code, notes, and snippets.

@nils-werner
Created April 29, 2011 09:07
Show Gist options
  • Save nils-werner/948078 to your computer and use it in GitHub Desktop.
Save nils-werner/948078 to your computer and use it in GitHub Desktop.
Makefile for Palm SDK
#
# Makefile for Palm WebOS SDK
#
# By default, this Makefile installs and launches apps on the Emulator. To override this
# behaviour override the variable DEVICE to be "usb". i.e. make reinstall DEVICE=usb
#
PACKAGE = com.yourdomain.yourapp
DEVICE = tcp
LEVEL = info
.PHONY: package clean install launch log update relaunch host
%.ipk:
rm -rf *.ipk
palm-package --use-v1-format .
package: %.ipk
clean:
rm -rf *.ipk
- palm-install -d $(DEVICE) -r $(PACKAGE)
install: package
palm-install -d $(DEVICE) *.ipk
launch:
palm-launch -d $(DEVICE) $(PACKAGE)
log:
palm-log -d $(DEVICE) -f $(PACKAGE)
level:
palm-log -d $(DEVICE) --system-log-level $(LEVEL)
update: clean install
relaunch: update launch log
host:
ssh -N -p 5522 -L 5581:localhost:8080 root@localhost &
chromium-browser http://localhost:5581/media/cryptofs/apps/usr/palm/applications/$(PACKAGE)/?device=pre &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment