-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (44 loc) · 1.36 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
beta:
rm -rf .active 2>/dev/null || true
ln -s beta .active
debug:
rm -rf .active 2>/dev/null || true
ln -s debug .active
release:
rm -rf .active 2>/dev/null || true
ln -s release .active
.active:
ln -s release .active || true
appinfo: .active
git log --pretty=format:'' | wc -l | sed 's/\(.*\)/s\/autoversion\/2.0.\1\//' > .version
cat .active/appinfo.json | sed -f .version > appinfo.json
all: lint appinfo
rm -rf .tmp 2>/dev/null || true
mkdir .tmp
cp -r app images index.html stylesheets icon.png sources.json .tmp
cp -r appinfo.json .active/framework_config.json .tmp || true
cp .active/minego-app.js .tmp/app/model/ ||true
palm-package --use-v1-format .tmp
rm -rf .tmp
install: all
palm-install *.ipk
clean:
rm *.ipk 2>/dev/null || true
rm -rf .tmp 2>/dev/null || true
appid:
grep '"id"' .active/appinfo.json | cut -d: -f2 | cut -d'"' -f2 > .active/appid
launch: install appid
palm-launch -i `cat .active/appid`
log: appid
-palm-log -f `cat .active/appid` | sed -u \
-e 's/\[[0-9]*-[0-9]*:[0-9]*:[0-9]*\.[0-9]*\] [a-zA-Z]*: //' \
-e 's/indicated new content, but not active./\n\n\n/'
lint:
cat sources.json | \
grep "source" | \
sed 's/.*\"source\"://' | \
cut -d'"' -f2 | \
xargs -L1 -I{} jsl -nologo -nofilelisting -nosummary -nocontext -conf jsl.conf -process {}
test: launch log
true
.PHONY: beta debug release clean