-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
100 lines (75 loc) · 2.47 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
90
91
92
93
94
95
96
97
98
99
100
PROJECT = JLRPOCX008.HVAC
INSTALL_FILES = images js icon.png index.html
WRT_FILES = DNA_common css icon.png index.html images setup config.xml js manifest.json README.txt
VERSION := 0.0.1
PACKAGE = $(PROJECT)-$(VERSION)
SEND := ~/send
ifndef TIZEN_IP
TIZEN_IP=TizenVTC
endif
dev: clean dev-common
zip -r $(PROJECT).wgt $(WRT_FILES)
install_obs:
mkdir -p ${DESTDIR}/opt/usr/apps/.preinstallWidgets
cp -r JLRPOCX008.HVAC.wgt ${DESTDIR}/opt/usr/apps/.preinstallWidgets
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 JLRPOCX008.HVAC"
run: install
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && xwalkctl 2>&1 | egrep -e 'HVAC' | awk '{print $1}' | xargs --no-run-if-empty xwalk-launcher -d"
run.feb1: install.feb1
ssh app@$(TIZEN_IP) "app_launcher -s JLRPOCX008.HVAC -d "
install.feb1: deploy
ifndef OBS
-ssh app@$(TIZEN_IP) "pkgcmd -u -n JLRPOCX008 -q"
ssh app@$(TIZEN_IP) "pkgcmd -i -t wgt -p /home/app/JLRPOCX008.HVAC.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 2>&1 | egrep -e 'HVAC' | 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/JLRPOCX008.HVAC.wgt"
endif
$(PROJECT).wgt : wgt
deploy: dev
ifndef OBS
scp $(PROJECT).wgt app@$(TIZEN_IP):/home/app
endif
all:
@echo "Nothing to build"
wgtPkg: common
zip -r $(PROJECT).wgt $(WRT_FILES)
clean:
rm -rf js/services
rm -rf common
rm -rf css/car
rm -rf css/user
rm -f $(PROJECT).wgt
git clean -f
-rm -rf DNA_common
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 -fr ./DNA_common/.git
rm -fr ./DNA_common/common-app/.git
../DNA_common:
@echo "Please checkout Common Assets"
exit 1
$(INSTALL_DIR) :
mkdir -p $(INSTALL_DIR)/
install_xwalk: $(INSTALL_DIR)
@echo "Installing $(PROJECT), stand by..."
cp $(PROJECT).wgt $(INSTALL_DIR)/
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/5000/dbus/user_bus_socket"
su app -c"xwalk -i $(INSTALL_DIR)/$(PROJECT).wgt"
dist:
tar czf ../$(PROJECT).tar.bz2 .