-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (44 loc) · 1.45 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
VERSION=0.6.0
NAME=nrby
ORG=org.eamonn
# Copyright (c) 2010 Eamonn O'Brien-Strain, [email protected]
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which is available at http://www.eclipse.org/legal/epl-v10.html
.SUFFIXES: .js .linted
JS=$(wildcard \
$(NAME)/app/models/*.js\
$(NAME)/app/assistants/*-assistant.js\
test/spec/suite.js)
LINTED := $(JS:.js=.linted)
ID=$(ORG).$(NAME)
JSLINT=java -classpath build/js.jar org.mozilla.javascript.tools.shell.Main build/jslint.js
JSDOC=java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js -t=jsdoc-toolkit/templates/jsdoc
run: install doc test
palm-launch -c $(ID)
palm-launch $(ID)
install: $(ID)_$(VERSION)_all.ipk
- palm-install -r $(ID)
palm-install $(ID)_$(VERSION)_all.ipk
$(ID)_$(VERSION)_all.ipk: lint $(NAME)/appinfo.json $(NAME)/* $(NAME)/*/* $(NAME)/*/*/*
palm-package $(NAME)
lint: $(LINTED)
%.linted : %.js
$(JSLINT) $<
touch $@
doc:
$(JSDOC) -d=apidoc -r $(NAME)/app/models $(NAME)/app/assistants
: View file://$(PWD)/apidoc/index.html to see documantation
$(NAME)/appinfo.json: appinfo-template.json
cp appinfo-template.json $@
: EDIT $@ FILE AND INSERT YOUR FLICKR API KEY
false
clean:
rm -rf apidoc
rm -f $(LINTED)
publish-doc: doc
scp -r apidoc $(NAME).$(ORG):$(NAME).$(ORG)/apidoc
follow-log:
palm-log -f $(ID)
test: lint doc
: View file://$(PWD)/test/runner.html to execute the tests