Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (40 sloc) 1.468 kb
81e9b355 »
2011-04-03 Added more test examples and improved documentation.
1 # Makefile to start Titanium Mobile project from the command line.
2 # More info at http://github.com/guilhermechapiewski/titanium-jasmine
3
b7efe7bd »
2011-03-31 Parametrized device type.
4 PROJECT_NAME=SampleApp
5 PROJECT_ROOT=$(shell pwd)
c388a757 »
2011-04-03 Added instructions to execute on iPhone or iPad.
6
7 run-iphone:
8 @DEVICE_TYPE=iphone make run
9
10 test-iphone:
11 @DEVICE_TYPE=iphone make test
12
13 run-ipad:
14 @DEVICE_TYPE=ipad make run
15
16 test-ipad:
17 @DEVICE_TYPE=ipad make test
0835e4fc » graybill
2011-11-07 Makefile commands plus vars in titanium.sh to build Android apps
18
19 run-android:
20 @DEVICE_TYPE=android make run
21
22 test-android:
23 @DEVICE_TYPE=android make test
0bc03aa2 »
2011-03-31 Added run, test and clean targets.
24
25 run:
c388a757 »
2011-04-03 Added instructions to execute on iPhone or iPad.
26 @if [ "${DEVICE_TYPE}" == "" ]; then\
27 echo "Please run \"make run-[iphone|ipad]\" instead.";\
28 exit 1;\
29 fi
0bc03aa2 »
2011-03-31 Added run, test and clean targets.
30 @mkdir -p ${PROJECT_ROOT}/${PROJECT_NAME}/Resources/test/
31 @echo "" > ${PROJECT_ROOT}/${PROJECT_NAME}/Resources/test/enabled.js
32 @make launch-titanium
33
34 test:
c388a757 »
2011-04-03 Added instructions to execute on iPhone or iPad.
35 @if [ "${DEVICE_TYPE}" == "" ]; then\
36 echo "Please run \"make test-[iphone|ipad]\" instead.";\
37 exit 1;\
38 fi
0bc03aa2 »
2011-03-31 Added run, test and clean targets.
39 @mkdir -p ${PROJECT_ROOT}/${PROJECT_NAME}/Resources/test/
40 @echo "sampleapp.tests_enabled = true;" > ${PROJECT_ROOT}/${PROJECT_NAME}/Resources/test/enabled.js
41 @make launch-titanium
42
b7efe7bd »
2011-03-31 Parametrized device type.
43 clean:
0bc03aa2 »
2011-03-31 Added run, test and clean targets.
44 @rm -rf ${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/*
45 @mkdir -p ${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/
46 @echo "Deleted: ${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/*"
47
48 launch-titanium:
89f0735b »
2011-03-31 Parametrized device type.
49 @echo "Building with Titanium... (DEVICE_TYPE:${DEVICE_TYPE})"
0bc03aa2 »
2011-03-31 Added run, test and clean targets.
50 @mkdir -p ${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/
b7efe7bd »
2011-03-31 Parametrized device type.
51 @PROJECT_NAME=${PROJECT_NAME} PROJECT_ROOT=${PROJECT_ROOT} DEVICE_TYPE=${DEVICE_TYPE} bash ${PROJECT_ROOT}/bin/titanium.sh
Something went wrong with that request. Please try again.