-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
executable file
·89 lines (64 loc) · 2.46 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
PROJECT = JLRPOCX001.HomeScreen
INSTALL_FILES = images js icon.png index.html
WRT_FILES = DNA_common css icon.png index.html setup config.xml images js manifest.json README.md
VERSION := 0.0.1
PACKAGE = $(PROJECT)-$(VERSION)
SEND := ~/send
ifndef TIZEN_IP
TIZEN_IP=TizenVTC
endif
dev: clean dev-common
zip -r $(PROJECT).wgt config.xml css icon.png index.html js images DNA_common
wgtPkg: common
#cp -rf ../DNA_common .
zip -r $(PROJECT).wgt config.xml css icon.png index.html js images DNA_common
config:
scp setup/weston.ini root@$(TIZEN_IP):/etc/xdg/weston/
$(PROJECT).wgt : dev
wgt:
zip -r $(PROJECT).wgt $(WRT_FILES)
kill.xwalk:
ssh root@$(TIZEN_IP) "pkill xwalk"
kill.feb1:
ssh app@$(TIZEN_IP) "pkgcmd -k JLRPOCX001.HomeScreen"
run: install
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 -d "
run.feb1: install.feb1
ssh app@$(TIZEN_IP) "app_launcher -s JLRPOCX001.HomeScreen -d "
install.feb1: deploy
ifndef OBS
-ssh app@$(TIZEN_IP) "pkgcmd -u -n JLRPOCX001.HomeScreen -q"
ssh app@$(TIZEN_IP) "pkgcmd -i -t wgt -p /home/app/JLRPOCX001.HomeScreen.wgt -q"
endif
install: deploy
ifndef OBS
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 xwalkctl -u"
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && xwalkctl -i /home/app/DNA_HomeScreen.wgt"
endif
$(PROJECT).wgt : wgt
deploy: dev
ifndef OBS
scp $(PROJECT).wgt app@$(TIZEN_IP):/home/app
endif
all:
@echo "Nothing to build"
clean:
-rm -f $(PROJECT).wgt
-rm -rf DNA_common
boxcheck: tizen-release
ssh root@$(TIZEN_IP) "cat /etc/tizen-release" | diff tizen-release - ; if [ $$? -ne 0 ] ; then tput setaf 1 ; echo "tizen-release version not correct"; tput sgr0 ;exit 1 ; fi
install_obs:
mkdir -p ${DESTDIR}/opt/usr/apps/.preinstallWidgets
cp -r JLRPOCX001.HomeScreen.wgt ${DESTDIR}/opt/usr/apps/.preinstallWidgets/
common: /opt/usr/apps/common-apps
cp -r /opt/usr/apps/common-apps DNA_common
/opt/usr/apps/common-apps:
@echo "Please install Common Assets"
exit 1
dev-common: ../common-app
cp -rf ../common-app ./DNA_common
rm -rf DNA_common/.git
../common-app:
#@echo "Please checkout Common Assets"
#exit 1
git clone [email protected]:PDXostc/common-app.git ../common-app