-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
54 lines (53 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
all:
make clean && make add && make build_ios && make build_droid
all_ios_build:
make clean && make add && make build_ios
all_droid_build:
make clean && make add && make build_droid
all_ios_run:
make clean && make add && make run_ios
all_droid_run:
make clean && make add && make run_droid
list:
cordova plugin list
add:
make add-remote
#make add-local
add-remote:
cordova plugin add bms-core
#cordova plugin add ibm-mfp-push
add-local:
clean:
#cordova plugin remove ibm-mfp-push
cordova plugin remove bms-core
pf_ios:
cordova platform add ios
pf_droid:
cordova platform add android
remove_pf_ios:
cordova platform add ios
remove_pf_droid:
cordova platform add android
build_droid:
cordova build android
build_ios:
cordova build ios
build:
make build_droid
make build_ios
run_droid:
cordova run android
run_ios:
cordova run ios
test_droid:
mv config.xml bak_config.xml
sed 's/content src="index.html"/content src="cdvtests\/index.html"/g' bak_config.xml >> config.xml
cordova run android
rm config.xml
mv bak_config.xml config.xml
test_ios:
mv config.xml bak_config.xml
sed 's/content src="index.html"/content src="cdvtests\/index.html"/g' bak_config.xml >> config.xml
cordova run ios
rm config.xml
mv bak_config.xml config.xml