Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(40)

Delta Between Two Patch Sets: Makefile

Issue 6783049: Enable yuidoc and add a start to docs.
Left Patch Set: Created 12 years, 6 months ago
Right Patch Set: Enable yuidoc and add a start to docs. Created 12 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « .bzrignore ('k') | README » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 FILES=$(shell bzr ls -RV -k file | grep -v assets/ | grep -v app/templates.js | grep -v server.js) 1 FILES=$(shell bzr ls -RV -k file | grep -v assets/ | grep -v app/templates.js | grep -v server.js)
2 NODE_TARGETS=node_modules/chai node_modules/d3 node_modules/jshint \ 2 NODE_TARGETS=node_modules/chai node_modules/d3 node_modules/jshint \
3 node_modules/yui node_modules/yuidoc 3 node_modules/yui node_modules/yuidoc
4 TEMPLATE_TARGETS=$(shell bzr ls -k file app/templates) 4 TEMPLATE_TARGETS=$(shell bzr ls -k file app/templates)
5 DATE=$(shell date -u)
6 APPCACHE=app/assets/manifest.appcache
5 7
6 all: install 8 all: install
7 9
8 app/templates.js: $(TEMPLATE_TARGETS) bin/generateTemplates 10 app/templates.js: $(TEMPLATE_TARGETS) bin/generateTemplates
9 @./bin/generateTemplates 11 @./bin/generateTemplates
10 12
11 yuidoc: $(FILES) 13 yuidoc: $(FILES)
12 @node_modules/.bin/yuidoc -o yuidoc -x assets app 14 @node_modules/.bin/yuidoc -o yuidoc -x assets app
13 15
14 $(NODE_TARGETS): package.json 16 $(NODE_TARGETS): package.json
15 @npm install 17 @npm install
16 @#link depends 18 @#link depends
17 @ln -sf `pwd`/node_modules/yui ./app/assets/javascripts/ 19 @ln -sf `pwd`/node_modules/yui ./app/assets/javascripts/
18 @ln -sf `pwd`/node_modules/d3/d3.v2* ./app/assets/javascripts/ 20 @ln -sf `pwd`/node_modules/d3/d3.v2* ./app/assets/javascripts/
19 21
20 install: $(NODE_TARGETS) app/templates.js yuidoc 22 install: appcache $(NODE_TARGETS) app/templates.js yuidoc
21 23
22 gjslint: virtualenv/bin/gjslint 24 gjslint: virtualenv/bin/gjslint
23 @virtualenv/bin/gjslint --strict --nojsdoc --jslint_error=all \ 25 @virtualenv/bin/gjslint --strict --nojsdoc --jslint_error=all \
24 --custom_jsdoc_tags \ 26 --custom_jsdoc_tags \
25 property,default,since,method,module,submodule,namespace \ 27 property,default,since,method,module,submodule,namespace \
26 $(FILES) 28 $(FILES)
27 29
28 jshint: node_modules/jshint 30 jshint: node_modules/jshint
29 @node_modules/jshint/bin/hint $(FILES) 31 @node_modules/jshint/bin/hint $(FILES)
30 32
(...skipping 12 matching lines...) Expand all
43 @./test-server.sh 45 @./test-server.sh
44 46
45 server: install 47 server: install
46 @echo "Customize config.js to modify server settings" 48 @echo "Customize config.js to modify server settings"
47 @node server.js 49 @node server.js
48 50
49 clean: 51 clean:
50 @rm -rf node_modules virtualenv 52 @rm -rf node_modules virtualenv
51 @make -C docs clean 53 @make -C docs clean
52 54
53 .PHONY: test lint beautify server install clean prep jshint gjslint 55 $(APPCACHE): manifest.appcache.in
56 » @cp manifest.appcache.in $(APPCACHE)
57 » @sed -re 's/^\# TIMESTAMP .+$$/\# TIMESTAMP $(DATE)/' -i $(APPCACHE)
58
59 appcache: $(APPCACHE)
60
61 # A target used only for forcibly updating the appcache.
62 appcache-touch:
63 » @touch manifest.appcache.in
64
65 # This is the real target. appcache-touch needs to be executed before
66 # appcache, and this provides the correct order.
67 appcache-force: appcache-touch appcache
68
69 .PHONY: test lint beautify server install clean prep jshint gjslint \
70 » appcache appcache-touch appcache-force
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b