-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
52 lines (41 loc) · 1.79 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
name=JetsLocationTracker
ssh=ssh -p 2222 -l root localhost
default: test
buildrelease releasebuild:
+ env -i make --no-print-directory build
release: releasebuild clean
git fetch github gh-pages:gh-pages
x=$$(ls -1 *.ipk); mv -v $$x /tmp; git checkout gh-pages; mv -v /tmp/$$x .; git add *.ipk; git clean -dfx; \
cp -v $$x ~/Dropbox/00.jlt/
test: clean
@+ JLT_LOGLEVEL=99 make --no-print-directory build
palm-install *.ipk
$(ssh) luna-send -n 1 palm://com.palm.applicationManager/launch "'{\"id\":\"org.voltar.jlt\"}'" \
\; tail -f /var/log/messages | ./log-parse.pl -a
myinstall: clean
@+ JLT_LOGLEVEL=0 make --no-print-directory build
scp *.ipk $${INSTHOST:-castle.vhb}:
ssh $${INSTHOST:-castle.vhb} /usr/bin/ipkg -o /media/cryptofs/apps install *.ipk
framework_config.json: framework_config.json.in
@echo build $@
@perl -pe 's/\%([\w\d]+),([\w\d]+)\%/$$ENV{ "JLT_$$1" }||$$2/eg' $< > $@
lc logcontinue cl continuelog:
$(ssh) tail -n 0 -f /var/log/messages | ./log-parse.pl -ca
build_date:
@ echo "\"$$(date)\"" > build_date.json
build: framework_config.json build_date
@-rm -vf *.ipk $(name) *.tar.gz ipkgtmp*
ln -sf ./ $(name) && \
palm-package --exclude "*.tar.gz" --exclude .git --exclude cgi --exclude "*.ipk" \
--exclude $(name) --exclude contrib --exclude Makefile \
--exclude log-parse.pl --exclude test-server.pl --exclude cgi \
--exclude framework_config.json.in \
$(name) && rm $(name)
README: app/views/About.html app/views/Help.html Makefile
@ echo -----=: app/views/About.html > README
@ elinks -dump app/views/About.html >> README
@ echo >> README
@ echo -----=: app/views/Help.html >> README
@ elinks -dump app/views/Help.html >> README
clean:
git clean -dfx