-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
63 lines (51 loc) · 1.43 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
#!/usr/bin/make -f
# SPDX-License-Identifier: MPL-2.0
#{
# Copyright 2018-present Samsung Electronics France SAS, and other contributors
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.*
#}
default: all
pwd
index?=index.html
tmpdir?=${CURDIR}/tmp
SELF?=${CURDIR}/Makefile
version?=$(shell date)
tizen_dir?=${HOME}/tizen-studio
tizen?=${tizen_dir}/tools/ide/bin/tizen
pkgid?=ComExample
pkgname?=Example
wgt_file?=${pkgname}.wgt
cert?=tizen
dst=/opt/usr/apps/${pkgid}/res/wgt/index.html
tizen_profile?=mobile-2.4
tizen_template?=WebBasicApplication
all: ${wgt_file}
pwd
clean:
rm -f *~ *.tmp
cleanall: clean
rm -f ${wgt_file}
rm -f *.wgt *.zip
distclean: cleanall
rm -rf tmp
rm -rf author-signature.xml .buildResult .manifest.tmp signature1.xml tmp
rule/firefox: ${index}
firefox $<
rule/chromium: ${index}
chromium-browser --disable-web-security $<
rule/chromium/clean: ${index}
@mkdir -p "${tmpdir}/$@"
HOME="${tmpdir}/$@"\
chromium-browser --disable-web-security \
--user-data-dir="${tmpdir}/$@" \
--disable-extensions \
"$<"
import:
${tizen} list web-project
${tizen} create web-project -p ${tizen_profile} -t ${tizen_template} -n ${package_name}
lib/tau: ${tizen_dir}/platforms/tizen-2.4/mobile/samples/Template/Web/tau-single-page/project/lib/tau
@mkdir -p ${@D}
cp -rfa $< $@