forked from PDXostc/fm_radio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (55 loc) · 2.39 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
58
59
60
61
62
63
64
65
66
67
68
69
app_list = DNA_HomeScreen DNA_HelloTizen DNA_FMRadio
extension_list = extension_common wkb_client_ext
# TIZEN_IP must be exported from the env if set to anything else than NUC
ifndef TIZEN_IP
TIZEN_IP=TizenNuc
endif
#to avoid typing a password for each scp or ssh command you need to copy
#your public key over
#
# ssh-copy-id app@TizenNuc
#
# This command will require your password and then you will be able to
# use ssh and scp without a password from that user.
all: apps
apps:
$(foreach app,$(app_list), make -C $(app);)
#cd HomeScreen && make
#cd Browser && make
#cd Boilerplate && make
#cd News && make
extensions:
$(foreach extension,$(extension_list), make -C $(extension);)
deploy: deploy_apps
deploy_apps:
$(foreach app,$(app_list), make -C $(app) deploy TIZEN_IP=$(TIZEN_IP);)
#cd HomeScreen && make deploy TIZEN_IP=192.168.6.53
#cd Browser && make deploy TIZEN_IP=192.168.6.53
#cd Boilerplate && make deploy TIZEN_IP=192.168.6.53
#cd News && make deploy TIZEN_IP=192.168.6.53
scp InstallWgts.sh app@$(TIZEN_IP):/home/app/
ssh app@$(TIZEN_IP) ./InstallWgts.sh
deploy_extensions:
$(foreach extension,$(extension_list), make -C $(extension) deploy TIZEN_IP=$(TIZEN_IP);)
run:
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && mkdir -p /tmp/pulseaudio"
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && xwalkctl | egrep -e 'Home Screen' | awk '{print $1}' | xargs --no-run-if-empty xwalk-launcher"
clean: clean_apps clean_extensions
clean_apps:
$(foreach app,$(app_list), make -C $(app) clean;)
#cd HomeScreen && make clean
#cd Boilerplate && make clean
#cd Browser && make clean
#cd News && make clean
cd Leap && make clean
#cd GestureGame && make clean
clean_extensions:
$(foreach extension,$(extension_list), make -C $(extension) clean;)
install:
$(foreach app,$(app_list), cd $(app) && make install && cd ..;)
update.extension:
ssh root@$(TIZEN_IP) "zypper -n rr updated_repo"
#ssh root@$(TIZEN_IP) "zypper -n addrepo -G https://download.tizen.org/releases/daily/tizen/ivi/latest/repos/atom/packages/ updated_repo"
ssh root@$(TIZEN_IP) "zypper -n addrepo -G https://download.tizen.org/releases/daily/tizen/ivi/tizen-ivi_20150115.2/repos/atom/packages/ updated_repo"
ssh root@$(TIZEN_IP) "zypper -n refresh"
ssh root@$(TIZEN_IP) "zypper -n install tizen-extensions-crosswalk"