-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
58 lines (44 loc) · 1.32 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
55
56
57
ALL: build-clean build-webapps
build: build-clean build-webapps
ifeq ($(findstring attached , ${shell adb devices}), attached )
push-packages: devices-remount devices-clean-b2g-data devices-clean-profiles adb-push-packages adb-push-config devices-reboot
else
push-packages:
@echo unknown which is your device!!!
endif
ifeq ($(findstring attached , ${shell adb devices}), attached )
push: devices-remount devices-clean-b2g-data devices-clean-profiles adb-push adb-push-config devices-reboot
else
push:
@echo unknown which is your device!!!
endif
devices-remount:
- adb root
- adb remount
devices-clean-b2g-data:
- adb shell rm -r /data/b2g/
- adb shell rm -r /cache/cache2/
devices-clean-profiles:
- adb shell rm -r /data/local/webapps/
- adb shell rm -r /system/b2g/webapps/
devices-reboot:
- adb shell stop api-daemon
- adb shell start api-daemon
- adb shell stop b2g
- adb shell start b2g
build-clean:
- ./build/build.py clean
build-webapps:
- ./build/build.py build
adb-push-packages:
- adb push out/webapps /system/b2g/
adb-push:
- adb shell mkdir /system/b2g/webapps/
- adb push apps/* /system/b2g/webapps/
- adb push out/webapps/webapps.json /system/b2g/webapps/
ifeq ($(DEVAPPS),1)
- adb push dev-apps/* /system/b2g/webapps/
endif
@echo Done!
adb-push-config:
- adb push config/* /system/b2g/