Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (35 sloc) 1.22 kb
# Makefile to start Titanium Mobile project from the command line.
# More info at http://github.com/guilhermechapiewski/titanium-jasmine
PROJECT_ROOT=$(shell pwd)
run-iphone:
@DEVICE_TYPE=iphone make run
test-iphone:
@DEVICE_TYPE=iphone make test
run-ipad:
@DEVICE_TYPE=ipad make run
test-ipad:
@DEVICE_TYPE=ipad make test
run:
@if [ "${DEVICE_TYPE}" == "" ]; then\
echo "Please run \"make run-[iphone|ipad]\" instead.";\
exit 1;\
fi
@mkdir -p ${PROJECT_ROOT}/Resources/test/
@echo "var tests_enabled = false;" > ${PROJECT_ROOT}/Resources/test/enabled.js
@make launch-titanium
test:
@if [ "${DEVICE_TYPE}" == "" ]; then\
echo "Please run \"make test-[iphone|ipad]\" instead.";\
exit 1;\
fi
@mkdir -p ${PROJECT_ROOT}/Resources/test/
@echo "var tests_enabled = true;" > ${PROJECT_ROOT}/Resources/test/enabled.js
@make launch-titanium
clean:
@rm -rf ${PROJECT_ROOT}/build/iphone/*
@mkdir -p ${PROJECT_ROOT}/build/iphone/
@echo "Deleted: ${PROJECT_ROOT}/build/iphone/*"
launch-titanium:
@echo "Building with Titanium... (DEVICE_TYPE:${DEVICE_TYPE})"
@mkdir -p ${PROJECT_ROOT}/build/iphone/
@PROJECT_ROOT=${PROJECT_ROOT} DEVICE_TYPE=${DEVICE_TYPE} bash ${PROJECT_ROOT}/jasmine_titanium.sh
Jump to Line
Something went wrong with that request. Please try again.