forked from zugaldia/android-robocar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 1 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
DISK = /dev/disk2
flash:
# The compressed image file expands to over 4GB. This can cause problems
# for the built-in tools on some platforms. If you are unable to unzip
# the archive, or see a message stating that it's corrupt, use 7-Zip
# (Windows) or The Unarchiver (Mac OS) instead.
diskutil unmountDisk $(DISK)
sudo dd bs=1m if=iot_rpi3.img of=$(DISK)
connect:
adb connect Android.local
clean:
cd robocar; ./gradlew clean
cd mobile; ./gradlew clean
test:
cd robocar; ./gradlew test
cd mobile; ./gradlew :app:test
checkstyle:
cd robocar; ./gradlew checkstyle
cd mobile; ./gradlew checkstyle
build:
cd robocar; ./gradlew assembleDebug
cd mobile; ./gradlew assembleDebug
download:
cd photos; adb shell ls /storage/emulated/0/Pictures/robocar/* | tr '\r' ' ' | xargs -n1 adb pull
remove:
adb shell rm /storage/emulated/0/Pictures/robocar/*
website:
# Site will be here: http://127.0.0.1:4000/
cd docs; bundle exec jekyll serve
website-deps:
sudo gem install bundler
cd docs; sudo bundle install